summaryrefslogtreecommitdiff
path: root/debian/strongswan-starter.postrm
diff options
context:
space:
mode:
authorYves-Alexis Perez <corsac@corsac.net>2012-06-30 17:08:05 +0200
committerYves-Alexis Perez <corsac@corsac.net>2012-06-30 17:08:05 +0200
commit762c54191bdb18783d5f746adcb7149c22c28680 (patch)
tree72f38be8c00519d967aa1093354d48f2fc7644e2 /debian/strongswan-starter.postrm
parentef21e6f1ddaf9a02044bee39e365fd2583798269 (diff)
downloadvyos-strongswan-762c54191bdb18783d5f746adcb7149c22c28680.tar.gz
vyos-strongswan-762c54191bdb18783d5f746adcb7149c22c28680.zip
remove strongswan user on purge and enable gcrypt plugin
* debian/strongswan-starter.postrm - remove strongswan user on purge. * debian/rules: - enable gcrypt plugin. closes: #600326 * debian/libstrongswan.install: - ship gcrypt plugin.
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/