debian/control: add Recommends against ca-certificates
[git/debian.git] / debian / git-daemon-run.postrm
blobf6aa282d05920470089e641fd953099c69102a9d
1 #!/bin/sh
2 set -e
4 #DEBHELPER#
6 test "$1" = 'purge' || exit 0
8 sv down /etc/sv/git-daemon 2>/dev/null || :
9 sv down /etc/sv/git-daemon/log 2>/dev/null || :
10 sv force-shutdown /etc/sv/git-daemon 2>/dev/null || :
11 sv force-stop /etc/sv/git-daemon/log 2>/dev/null || :
12 rm -rf /etc/sv/git-daemon/supervise /etc/sv/git-daemon/log/supervise
13 rm -rf /var/lib/supervise/git-daemon /var/lib/supervise/git-daemon.log
15 for i in '@*' current config lock state; do
16 rm -f /var/log/git-daemon/$i
17 done
18 rmdir /var/log/git-daemon || :
20 getent passwd gitlog >/dev/null || exit 0
21 ! deluser --version >/dev/null 2>&1 || exec deluser -f gitlog
22 echo 'deluser program not available, not removing system user "gitlog".' >&2