Add user handling, support for wireshark-lua + debian/anytun.default; Update changelo...
[anytun.git] / debian / postrm
index cbb8c6d..227ebdf 100755 (executable)
@@ -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#