Reengineed the code. Generalized the package. Cloud configurators are modules.
This commit is contained in:
@@ -3,7 +3,15 @@ set -e
|
||||
|
||||
case "$1" in
|
||||
remove|deconfigure)
|
||||
systemctl disable --now strongswan || true
|
||||
# Stop offering the tunnels, but leave strongSwan itself enabled: it is
|
||||
# a shared service and may be in use by something other than this
|
||||
# package. The connection files are removed on purge.
|
||||
if [ -d /run/systemd/system ]; then
|
||||
swanctl --terminate --ike remote-site >/dev/null 2>&1 || true
|
||||
swanctl --terminate --ike road-warrior >/dev/null 2>&1 || true
|
||||
# This package enabled wg-quick@wg0, so it takes it down again.
|
||||
systemctl disable --now wg-quick@wg0 >/dev/null 2>&1 || true
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
Reference in New Issue
Block a user