root / debian / postinst @ 63b66016
History | View | Annotate | Download (567 Bytes)
1 |
#!/bin/sh -e |
---|---|
2 |
|
3 |
setup_vncauthproxy_user() { |
4 |
if ! getent group vncauthproxy >/dev/null; then |
5 |
addgroup --system --quiet vncauthproxy |
6 |
fi |
7 |
|
8 |
if ! getent passwd vncauthproxy >/dev/null; then |
9 |
adduser --quiet --system --no-create-home --home /var/run/vncauthproxy --ingroup vncauthproxy --shell /usr/sbin/nologin vncauthproxy |
10 |
fi |
11 |
|
12 |
} |
13 |
|
14 |
setup_vncauthproxy_user |
15 |
|
16 |
case "$1" in |
17 |
configure) |
18 |
;; |
19 |
|
20 |
abort-upgrade|abort-remove|abort-deconfigure) |
21 |
;; |
22 |
|
23 |
*) |
24 |
echo "postinst called with unknown argument \`$1'" >&2 |
25 |
exit 1 |
26 |
;; |
27 |
esac |
28 |
|
29 |
#DEBHELPER# |
30 |
|
31 |
exit 0 |