]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Core Update 172: Ship and restart Suricata
authorPeter Müller <peter.mueller@ipfire.org>
Tue, 29 Nov 2022 13:41:00 +0000 (14:41 +0100)
committerPeter Müller <peter.mueller@ipfire.org>
Tue, 29 Nov 2022 13:41:00 +0000 (14:41 +0100)
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
config/rootfiles/core/172/update.sh

index e7315656014741a67f08f129654ddea3b96ab392..ecf439a92654745d9fbc19fcc0f5289a0f8a8389 100644 (file)
@@ -37,6 +37,7 @@ done
 /usr/local/bin/openvpnctrl -kn2n
 /etc/rc.d/init.d/sshd stop
 /etc/rc.d/init.d/unbound stop
+/etc/rc.d/init.d/suricata stop
 
 KVER="xxxKVERxxx"
 
@@ -166,6 +167,9 @@ if [ -f "/var/ipfire/ovpn/n2nconf/*/*.conf" ]; then
 fi
 
 # Start services
+if grep -q "ENABLE_IDS=on" /var/ipfire/suricata/settings; then
+       /etc/rc.d/init.d/suricata start
+fi
 /etc/init.d/unbound start
 if grep -q "ENABLE_SSH=on" /var/ipfire/remote/settings; then
        /etc/init.d/sshd start