debian: new upstream release
[git/debian.git] / debian / git-daemon-run.postinst
blob41f6d20dd702a90cdbdbdec5e7de37dbb7d4c214
1 #!/bin/sh
2 set -e
4 #DEBHELPER#
6 test "$1" = 'configure' || exit 0
8 getent passwd gitlog >/dev/null || \
9 adduser --system --home /nonexistent --no-create-home gitlog
10 getent passwd gitdaemon >/dev/null || \
11 adduser --system --home /nonexistent --no-create-home gitdaemon
13 # enable git-daemon service
14 update-service --add /etc/sv/git-daemon
16 # restart git-daemon service if it was running
17 test -z "$2" || sv -v term git-daemon || :