monit 6.0.0: Fix for '/etc/monitrc', if already installed
Commit Message
Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
---
config/rootfiles/core/204/update.sh | 5 +++++
1 file changed, 5 insertions(+)
@@ -66,6 +66,11 @@ if [ -e /boot/grub/grub.cfg ]; then
/usr/bin/install-bootloader
fi
+# If 'monit' is installed: update '/etc/monitrc' for use with 'monit v6.0.0'
+if [ -e /etc/monitrc ]; then
+ sed -i -e "s/^set logfile/set log/g" /etc/monitrc
+fi
+
sync
# Don't report the exitcode last command