Revision c5654215
b/debian/postinst | ||
---|---|---|
15 | 15 |
|
16 | 16 |
case "$1" in |
17 | 17 |
configure) |
18 |
if [ ! -s /var/lib/vncauthproxy/users ] |
|
19 |
then |
|
20 |
echo "Configure a vncauthproxy user:" |
|
21 |
|
|
22 |
read -p "User: " user |
|
23 |
if [ "x$user" = "x" ] |
|
24 |
then |
|
25 |
echo "cannot add empty user, aborting" >&2 |
|
26 |
exit 1 |
|
27 |
fi |
|
28 |
|
|
29 |
vncauthproxy-passwd /var/lib/vncauthproxy/users $user |
|
30 |
fi |
|
18 | 31 |
;; |
19 | 32 |
|
20 | 33 |
abort-upgrade|abort-remove|abort-deconfigure) |
Also available in: Unified diff