Core Update 170: Stop Suricata before extracting files

Stopping services before potentially tampering with files they use is a
more sane approach than doing the latter and hope the running service
can cope with it. Suricata, at least, reportedly doesn't.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
This commit is contained in:
Peter Müller
2022-07-28 13:42:48 +00:00
parent b3d408d8c8
commit f201005f46

View File

@@ -45,6 +45,7 @@ done
# Stop services
/etc/init.d/rc.d/unbound stop
/etc/init.d/rc.d/suricata stop
KVER="xxxKVERxxx"
@@ -171,7 +172,7 @@ sed -i /etc/collectd.conf \
# Start services
/etc/init.d/rc.d/unbound start
/etc/init.d/rc.d/suricata restart
/etc/init.d/rc.d/suricata start
# Harden mount options of /boot
sed -e -i "s@[[:space:]]*\/boot[[:space:]]*auto[[:space:]]*defaults[[:space:]]*@ \/boot auto defaults,nodev,noexec,nosuid @g" /etc/fstab