Debian Codegraph @

debian/postrm

raw
1 #!/bin/sh
2 # postrm script for anytun
3
4 set -e
5
6 if [ "$1" = "purge" ] ; then
7 update-rc.d anytun remove >/dev/null || exit $?
8
9 if [ -x "$(command -v deluser)" -a -x "$(command -v delgroup)" ]; then
10 deluser --quiet --system anytun || true
11 delgroup --quiet --system anytun || true
12 else
13 echo "Not removing anytun user and group: adduser package not found." >&2
14 fi
15 fi
16
17 #DEBHELPER#