4 test "$1" = 'purge' ||
exit 0
6 sv down
/etc
/sv
/git-daemon
2>/dev
/null ||
:
7 sv down
/etc
/sv
/git-daemon
/log
2>/dev
/null ||
:
8 sv force-shutdown
/etc
/sv
/git-daemon
2>/dev
/null ||
:
9 sv force-stop
/etc
/sv
/git-daemon
/log
2>/dev
/null ||
:
10 rm -rf /etc
/sv
/git-daemon
/supervise
/etc
/sv
/git-daemon
/log
/supervise
11 rm -rf /var
/lib
/supervise
/git-daemon
/var
/lib
/supervise
/git-daemon.log
13 for i
in '@*' current config lock state
; do
14 rm -f /var
/log
/git-daemon
/$i
16 rmdir /var
/log
/git-daemon ||
:
18 getent passwd gitlog
>/dev
/null ||
exit 0
19 ! deluser
--version >/dev
/null
2>&1 ||
exec deluser
-f gitlog
20 echo 'deluser program not available, not removing system user "gitlog".' >&2