monit 6.0.0: Fix for '/etc/monitrc', if already installed

Message ID 20260620163416.2908-1-matthias.fischer@ipfire.org
State New
Headers
Series monit 6.0.0: Fix for '/etc/monitrc', if already installed |

Commit Message

Matthias Fischer 20 Jun 2026, 4:34 p.m. UTC
Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
---
 config/rootfiles/core/204/update.sh | 5 +++++
 1 file changed, 5 insertions(+)
  

Patch

diff --git a/config/rootfiles/core/204/update.sh b/config/rootfiles/core/204/update.sh
index 477237a04..0629c154e 100644
--- a/config/rootfiles/core/204/update.sh
+++ b/config/rootfiles/core/204/update.sh
@@ -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