]> git.ipfire.org Git - people/mfischer/ipfire-2.x.git/commitdiff
Core Update 173: Ship and restart strongSwan
authorPeter Müller <peter.mueller@ipfire.org>
Wed, 18 Jan 2023 23:21:15 +0000 (23:21 +0000)
committerPeter Müller <peter.mueller@ipfire.org>
Wed, 18 Jan 2023 23:21:15 +0000 (23:21 +0000)
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
config/rootfiles/core/173/filelists/strongswan [new symlink]
config/rootfiles/core/173/update.sh

diff --git a/config/rootfiles/core/173/filelists/strongswan b/config/rootfiles/core/173/filelists/strongswan
new file mode 120000 (symlink)
index 0000000..90c727e
--- /dev/null
@@ -0,0 +1 @@
+../../../common/strongswan
\ No newline at end of file
index c58ba3301934883421a07bbd9c4f8cbb70f8df64..fd5d6a51255175917ef1a31a2ccaae91dc1974bb 100644 (file)
@@ -44,6 +44,7 @@ for (( i=1; i<=$core; i++ )); do
 done
 
 # Stop services
+/etc/rc.d/init.d/ipsec stop
 /usr/local/bin/openvpnctrl -k
 /usr/local/bin/openvpnctrl -kn2n
 
@@ -117,6 +118,9 @@ if grep -q "ENABLED=on" /var/ipfire/ovpn/settings; then
        /usr/local/bin/openvpnctrl -s
        /usr/local/bin/openvpnctrl -sn2n
 fi
+if grep -q "ENABLED=on" /var/ipfire/vpn/settings; then
+       /etc/init.d/ipsec start
+fi
 
 # Regenerate all initrds
 dracut --regenerate-all --force