From: Matthias Fischer <matthias.fischer@ipfire.org>
To: development@lists.ipfire.org
Cc: Matthias Fischer <matthias.fischer@ipfire.org>
Subject: [PATCH] monit 6.0.0: Fix for '/etc/monitrc', if already installed
Date: Sat, 20 Jun 2026 18:34:00 +0200 [thread overview]
Message-ID: <20260620163416.2908-1-matthias.fischer@ipfire.org> (raw)
Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
---
config/rootfiles/core/204/update.sh | 5 +++++
1 file changed, 5 insertions(+)
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
--
2.53.0
next reply other threads:[~2026-06-20 16:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-20 16:34 Matthias Fischer [this message]
2026-06-22 18:24 ` Adolf Belka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260620163416.2908-1-matthias.fischer@ipfire.org \
--to=matthias.fischer@ipfire.org \
--cc=development@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox