From e6c97353cc9964909f40c47ab2cdbecca43955ab Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20M=C3=BCller?= Date: Tue, 7 Feb 2023 11:31:17 +0000 Subject: [PATCH] Core Update 173: Ship and restart Suricata MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Peter Müller --- config/rootfiles/core/173/filelists/suricata | 1 + config/rootfiles/core/173/update.sh | 4 ++++ 2 files changed, 5 insertions(+) create mode 120000 config/rootfiles/core/173/filelists/suricata diff --git a/config/rootfiles/core/173/filelists/suricata b/config/rootfiles/core/173/filelists/suricata new file mode 120000 index 0000000000..f671f69933 --- /dev/null +++ b/config/rootfiles/core/173/filelists/suricata @@ -0,0 +1 @@ +../../../common/suricata \ No newline at end of file diff --git a/config/rootfiles/core/173/update.sh b/config/rootfiles/core/173/update.sh index c2bfe25b13..24d89c30aa 100644 --- a/config/rootfiles/core/173/update.sh +++ b/config/rootfiles/core/173/update.sh @@ -49,6 +49,7 @@ done /usr/local/bin/openvpnctrl -k /usr/local/bin/openvpnctrl -kn2n /etc/rc.d/init.d/sshd stop +/etc/rc.d/init.d/suricata stop KVER="xxxKVERxxx" @@ -135,6 +136,9 @@ done /usr/local/bin/sshctrl # Start services +if grep -q "ENABLE_IDS=on" /var/ipfire/suricata/settings; then + /etc/rc.d/init.d/suricata start +fi /etc/rc.d/init.d/apache start if grep -q "ENABLE_SSH=on" /var/ipfire/remote/settings; then /etc/init.d/sshd start -- 2.39.5