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.postrm4
1 files changed, 4 insertions, 0 deletions
diff --git a/debian/strongswan-starter.postrm b/debian/strongswan-starter.postrm
index 18f9069b6..6e4a581ff 100644
--- a/debian/strongswan-starter.postrm
+++ b/debian/strongswan-starter.postrm
@@ -32,6 +32,10 @@ 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
+
rm -rf /etc/ipsec.d/
rm -rf /var/run/pluto/
fi