]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Core Update 183: Ship and restart strongSwan
authorPeter Müller <peter.mueller@ipfire.org>
Thu, 11 Jan 2024 11:57:05 +0000 (11:57 +0000)
committerPeter Müller <peter.mueller@ipfire.org>
Thu, 11 Jan 2024 11:57:05 +0000 (11:57 +0000)
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
config/rootfiles/core/183/filelists/strongswan [new symlink]
config/rootfiles/core/183/update.sh

diff --git a/config/rootfiles/core/183/filelists/strongswan b/config/rootfiles/core/183/filelists/strongswan
new file mode 120000 (symlink)
index 0000000..90c727e
--- /dev/null
@@ -0,0 +1 @@
+../../../common/strongswan
\ No newline at end of file
index fc470c89eb33bda307fa39104cf17267323197c8..e16d2bab840239f43b62566891ecb52a5f85aa51 100644 (file)
@@ -44,6 +44,7 @@ for (( i=1; i<=$core; i++ )); do
 done
 
 # Stop services
+/etc/rc.d/init.d/ipsec stop
 /etc/rc.d/init.d/apache stop
 /etc/rc.d/init.d/sshd stop
 
@@ -119,6 +120,9 @@ ldconfig
 if grep -q "ENABLE_SSH=on" /var/ipfire/remote/settings; then
        /etc/init.d/sshd start
 fi
+if grep -q "ENABLED=on" /var/ipfire/vpn/settings; then
+       /etc/rc.d/init.d/ipsec start
+fi
 
 # Rebuild initial ramdisks
 dracut --regenerate-all --force