From 0c09763e87d5b47f5eb51b67135ae16bbc4f46c6 Mon Sep 17 00:00:00 2001 From: Mathieu Trossevin Date: Thu, 14 Dec 2023 16:59:55 +0100 Subject: [PATCH] fix(minifirewall): Properly detect old minifirewall versions --- CHANGELOG.md | 1 + minifirewall/files/check_minifirewall | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 08b2ecb7..5ff2a0f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ The **patch** part changes is incremented if multiple releases happen the same m * webapps/nextcloud: Set ownership and permissions of data directory * webapps/nextcloud: Add condition for config tasks * remount-usr: do not try to remount /usr RW if /usr is not a mounted partition +* minifirewall: Fix nagios check for old versions of minifirewall ### Changed diff --git a/minifirewall/files/check_minifirewall b/minifirewall/files/check_minifirewall index fc034de4..565a912d 100644 --- a/minifirewall/files/check_minifirewall +++ b/minifirewall/files/check_minifirewall @@ -87,7 +87,7 @@ main() { append_details "configuration is up-to-date" summary_ok "minifirewall is started and configuration is up-to-date" else - if echo "${check_result}" | grep --quiet --regexp 'usage'; then + if echo "${check_result}" | grep --ignore-case --quiet --regexp 'usage'; then append_details "minifirewall is too old to check active configuration" else case "${check_rc}" in