]> git.ipfire.org Git - people/ummeegge/ipfire-2.x.git/commitdiff
Core Update 174: Ship and restart strongSwan
authorPeter Müller <peter.mueller@ipfire.org>
Mon, 6 Mar 2023 16:43:47 +0000 (16:43 +0000)
committerPeter Müller <peter.mueller@ipfire.org>
Mon, 6 Mar 2023 16:43:47 +0000 (16:43 +0000)
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
config/rootfiles/core/174/filelists/strongswan [new symlink]
config/rootfiles/core/174/update.sh

diff --git a/config/rootfiles/core/174/filelists/strongswan b/config/rootfiles/core/174/filelists/strongswan
new file mode 120000 (symlink)
index 0000000..90c727e
--- /dev/null
@@ -0,0 +1 @@
+../../../common/strongswan
\ No newline at end of file
index 3f8263f2208d5b7ac7bd104653d7c6d73eae9dc8..9dcdb491fc6f93eccd00135aaf0697f9544afefc 100644 (file)
@@ -33,6 +33,7 @@ done
 
 # Stop services
 /etc/rc.d/init.d/squid stop
+/etc/rc.d/init.d/ipsec stop
 
 # Extract files
 extract_files
@@ -64,6 +65,9 @@ telinit u
 if [ -f /var/ipfire/proxy/enable ]; then
        /etc/init.d/squid start
 fi
+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