]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Core Update 176: Ship and restart strongSwan
authorPeter Müller <peter.mueller@ipfire.org>
Sun, 25 Jun 2023 20:59:55 +0000 (20:59 +0000)
committerPeter Müller <peter.mueller@ipfire.org>
Sun, 25 Jun 2023 20:59:55 +0000 (20:59 +0000)
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
config/rootfiles/core/176/filelists/strongswan [new symlink]
config/rootfiles/core/176/update.sh

diff --git a/config/rootfiles/core/176/filelists/strongswan b/config/rootfiles/core/176/filelists/strongswan
new file mode 120000 (symlink)
index 0000000..90c727e
--- /dev/null
@@ -0,0 +1 @@
+../../../common/strongswan
\ No newline at end of file
index d802da6a4b7632bc2c332b9520091b413b1d196f..9c0ef54e4788b576ce48d17250ea2e02616f9877 100644 (file)
@@ -33,6 +33,7 @@ done
 
 # Stop services
 /etc/init.d/suricata stop
+/etc/rc.d/init.d/ipsec stop
 
 # Extract files
 extract_files
@@ -58,6 +59,9 @@ ldconfig
 # Start services
 telinit u
 /etc/init.d/suricata start
+if grep -q "ENABLED=on" /var/ipfire/vpn/settings; then
+       /etc/rc.d/init.d/ipsec start
+fi
 
 # Rebuild initial ramdisk to apply microcode updates
 dracut --regenerate-all --force