From: Ian Jackson Date: Mon, 9 Dec 2013 16:41:04 +0000 (+0000) Subject: Add debhelper token to postinst scripts. X-Git-Tag: userv/0.6.1~50 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=userv-utils.git;a=commitdiff_plain;h=8840a0218ab7faf0668966318166b909e18b2131 Add debhelper token to postinst scripts. --- diff --git a/debian/changelog b/debian/changelog index 633cf26..063132f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,6 +5,7 @@ userv-utils (0.6.0~~iwj3) unstable; urgency=low * Add dependency on debhelper. * No longer mention SLIP and udptunnel in the userv-ipif Description. * Americanise spelling of /usr/share/common-licences to ...-licenses. + * Add debhelper token to postinst scripts. -- diff --git a/debian/userv-dyndns.postinst b/debian/userv-dyndns.postinst index 95988c7..da9acd7 100755 --- a/debian/userv-dyndns.postinst +++ b/debian/userv-dyndns.postinst @@ -20,6 +20,8 @@ #!/bin/sh set -e +#DEBHELPER# + user="$(sed -n '/^[a-z]/{p;q;}' /etc/userv/dyndns-service-users)" if id $user >/dev/null 2>&1; then exit 0; fi diff --git a/debian/userv-git-daemon.postinst b/debian/userv-git-daemon.postinst index be6c934..1d4f740 100755 --- a/debian/userv-git-daemon.postinst +++ b/debian/userv-git-daemon.postinst @@ -27,6 +27,8 @@ GITDUSER=git defaults=/etc/default/userv-git-daemon if test -f $defaults; then . $defaults; fi +#DEBHELPER# + if [ "$GITDUSER" ]; then if id $GITDUSER >/dev/null 2>&1; then exit 0; fi