projects
/
anytun.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Enable systemd integration
[anytun.git]
/
debian
/
postrm
diff --git
a/debian/postrm
b/debian/postrm
index
cbb8c6d
..
227ebdf
100755
(executable)
--- 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 [ "$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#
fi
#DEBHELPER#