]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Core Update 172: Ship and restart strongSwan
authorPeter Müller <peter.mueller@ipfire.org>
Mon, 24 Oct 2022 08:57:00 +0000 (08:57 +0000)
committerPeter Müller <peter.mueller@ipfire.org>
Mon, 24 Oct 2022 08:57:00 +0000 (08:57 +0000)
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
config/rootfiles/core/172/filelists/strongswan [new symlink]
config/rootfiles/core/172/update.sh

diff --git a/config/rootfiles/core/172/filelists/strongswan b/config/rootfiles/core/172/filelists/strongswan
new file mode 120000 (symlink)
index 0000000..90c727e
--- /dev/null
@@ -0,0 +1 @@
+../../../common/strongswan
\ No newline at end of file
index ddcc1e175ee4637d49158e33913d0ab7690e6840..89c34ffd7a73e4655a0fac220710f61f99dbc4e7 100644 (file)
@@ -32,6 +32,7 @@ for (( i=1; i<=$core; i++ )); do
 done
 
 # Stop services
+/etc/rc.d/init.d/ipsec stop
 
 # Remove files
 
@@ -48,6 +49,9 @@ ldconfig
 /usr/local/bin/filesystem-cleanup
 
 # Start services
+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