]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Core Update 171: Ship and restart strongSwan
authorPeter Müller <peter.mueller@ipfire.org>
Sun, 18 Sep 2022 07:58:39 +0000 (07:58 +0000)
committerPeter Müller <peter.mueller@ipfire.org>
Sun, 18 Sep 2022 07:58:39 +0000 (07:58 +0000)
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
config/rootfiles/core/171/filelists/strongswan [new symlink]
config/rootfiles/core/171/update.sh

diff --git a/config/rootfiles/core/171/filelists/strongswan b/config/rootfiles/core/171/filelists/strongswan
new file mode 120000 (symlink)
index 0000000..90c727e
--- /dev/null
@@ -0,0 +1 @@
+../../../common/strongswan
\ No newline at end of file
index 3b961ee9e6b53b63419677bc3eab6bc067f81a63..2c07d2f0877d92a97c0794d8032b628c875a19f1 100644 (file)
@@ -34,6 +34,7 @@ done
 # Stop services
 /etc/rc.d/init.d/squid stop
 /etc/rc.d/init.d/openvpn stop
+/etc/rc.d/init.d/ipsec stop
 
 # Remove files
 rm -rvf \
@@ -149,6 +150,9 @@ ldconfig
 # Start services
 /etc/init.d/squid start
 /etc/init.d/openvpn start
+if grep -q "ENABLED=on" /var/ipfire/vpn/settings; then
+       /etc/init.d/ipsec start
+fi
 
 # This update needs a reboot...
 touch /var/run/need_reboot