X-Git-Url: https://git.syn-net.org/debian/?a=blobdiff_plain;f=debian%2Fpostrm;h=227ebdfb5c33981db17e392a08e748fe4bd639f3;hb=4022c01b494945eff22115d535228d7f1c5f3369;hp=cbb8c6d2e2e653a6b57d56fb9c85a2c0ac2da1f6;hpb=b99e6479ae12bb6b8688a7d6f8dc6e129135ebe7;p=anytun.git diff --git a/debian/postrm b/debian/postrm index cbb8c6d..227ebdf 100755 --- a/debian/postrm +++ b/debian/postrm @@ -5,6 +5,13 @@ set -e if [ "$1" = "purge" ] ; then update-rc.d anytun remove >/dev/null || exit $? + + if [ -x "$(command -v deluser)" -a -x "$(command -v delgroup)" ]; then + deluser --quiet --system anytun || true + delgroup --quiet --system anytun || true + else + echo "Not removing anytun user and group: adduser package not found." >&2 + fi fi #DEBHELPER#