From 3b2e37af229d03b162ccc9bf681fa02fb583a5bb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20M=C3=BCller?= Date: Thu, 11 Jan 2024 11:57:05 +0000 Subject: [PATCH] Core Update 183: Ship and restart strongSwan MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Peter Müller --- config/rootfiles/core/183/filelists/strongswan | 1 + config/rootfiles/core/183/update.sh | 4 ++++ 2 files changed, 5 insertions(+) create mode 120000 config/rootfiles/core/183/filelists/strongswan diff --git a/config/rootfiles/core/183/filelists/strongswan b/config/rootfiles/core/183/filelists/strongswan new file mode 120000 index 0000000000..90c727e265 --- /dev/null +++ b/config/rootfiles/core/183/filelists/strongswan @@ -0,0 +1 @@ +../../../common/strongswan \ No newline at end of file diff --git a/config/rootfiles/core/183/update.sh b/config/rootfiles/core/183/update.sh index fc470c89eb..e16d2bab84 100644 --- a/config/rootfiles/core/183/update.sh +++ b/config/rootfiles/core/183/update.sh @@ -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 -- 2.39.5