summaryrefslogtreecommitdiffstats
path: root/debian/git-daemon-sysvinit.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/git-daemon-sysvinit.postinst')
-rw-r--r--debian/git-daemon-sysvinit.postinst8
1 files changed, 8 insertions, 0 deletions
diff --git a/debian/git-daemon-sysvinit.postinst b/debian/git-daemon-sysvinit.postinst
new file mode 100644
index 0000000..65270fb
--- /dev/null
+++ b/debian/git-daemon-sysvinit.postinst
@@ -0,0 +1,8 @@
+#!/bin/sh
+set -e
+
+test "$1" != 'configure' || \
+getent passwd gitdaemon >/dev/null || \
+ adduser --system --home /nonexistent --no-create-home gitdaemon
+
+#DEBHELPER#