summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2013-12-09 16:41:04 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2013-12-09 16:41:04 +0000
commit8840a0218ab7faf0668966318166b909e18b2131 (patch)
tree0c263865e4d3c77c3e9d71c920279fa155428ad7 /debian
parent5944b2aaadde146d718cff350f4dc92658a5ecf1 (diff)
downloaduserv-utils-8840a0218ab7faf0668966318166b909e18b2131.tar.gz
Add debhelper token to postinst scripts.
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog1
-rwxr-xr-xdebian/userv-dyndns.postinst2
-rwxr-xr-xdebian/userv-git-daemon.postinst2
3 files changed, 5 insertions, 0 deletions
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