summaryrefslogtreecommitdiff
path: root/debian/strongswan-starter.postrm
diff options
context:
space:
mode:
Diffstat (limited to 'debian/strongswan-starter.postrm')
-rw-r--r--debian/strongswan-starter.postrm8
1 files changed, 5 insertions, 3 deletions
diff --git a/debian/strongswan-starter.postrm b/debian/strongswan-starter.postrm
index 455687a3c..93407b76e 100644
--- a/debian/strongswan-starter.postrm
+++ b/debian/strongswan-starter.postrm
@@ -32,9 +32,11 @@ esac
if [ "$1" = "purge" ] ; then
update-rc.d ipsec remove >/dev/null
- #if which deluser >/dev/null 2>&1; then
- # deluser --quiet strongswan > /dev/null || true
- #fi
+ if getent passwd strongswan>/dev/null; then
+ if [ -x /usr/sbin/deluser ]; then
+ deluser --system strongswan
+ fi
+ fi
rm -rf /etc/ipsec.d/
rm -rf /var/run/pluto/