From 451cf01677c4da62dd7235ec1cfbe8b54fa8b201 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20M=C3=BCller?= Date: Mon, 21 Mar 2022 19:04:11 +0000 Subject: [PATCH] Core Update 166: 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/166/filelists/strongswan | 1 + config/rootfiles/core/166/update.sh | 4 ++++ 2 files changed, 5 insertions(+) create mode 120000 config/rootfiles/core/166/filelists/strongswan diff --git a/config/rootfiles/core/166/filelists/strongswan b/config/rootfiles/core/166/filelists/strongswan new file mode 120000 index 0000000000..90c727e265 --- /dev/null +++ b/config/rootfiles/core/166/filelists/strongswan @@ -0,0 +1 @@ +../../../common/strongswan \ No newline at end of file diff --git a/config/rootfiles/core/166/update.sh b/config/rootfiles/core/166/update.sh index 1370555b06..4c1c1e483a 100644 --- a/config/rootfiles/core/166/update.sh +++ b/config/rootfiles/core/166/update.sh @@ -46,6 +46,7 @@ gpg --batch --yes --delete-keys 179740DC4D8C47DC63C099C74BDE364C64D96617 unset GNUPGHOME # Stop services +/etc/init.d/ipsec stop # Extract files extract_files @@ -69,6 +70,9 @@ perl -e "require '/var/ipfire/ids-functions.pl'; &IDS::oinkmaster();" # Start services /etc/init.d/apache restart /etc/init.d/sshd restart +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 -- 2.39.5