From d15470c7d8969c2be13b330e3f56a061caad5b31 Mon Sep 17 00:00:00 2001 From: "Adam D. Barratt" Date: Sat, 12 Oct 2019 19:50:13 +0100 Subject: [PATCH] dsa-check-config: fix typo in log check for "OK" statuses It's mostly harmless, but let's fix it for consistency Signed-off-by: Adam D. Barratt --- dsa-nagios-checks/checks/dsa-check-config | 2 +- dsa-nagios-checks/debian/changelog | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dsa-nagios-checks/checks/dsa-check-config b/dsa-nagios-checks/checks/dsa-check-config index 2772994..7ce992e 100755 --- a/dsa-nagios-checks/checks/dsa-check-config +++ b/dsa-nagios-checks/checks/dsa-check-config @@ -9,7 +9,7 @@ set -e err=0 log() { - if [ "$0" = "ok" ] && [ "$err" = 0 ]; then + if [ "$1" = "ok" ] && [ "$err" = 0 ]; then err=0 elif [ "$1" = "warn" ] && [ "$err" -lt 1 ]; then err=1 diff --git a/dsa-nagios-checks/debian/changelog b/dsa-nagios-checks/debian/changelog index dcde72c..e911a36 100644 --- a/dsa-nagios-checks/debian/changelog +++ b/dsa-nagios-checks/debian/changelog @@ -7,6 +7,7 @@ dsa-nagios-checks (119) UNRELEASED; urgency=medium [ Adam D. Barratt ] * dsa-check-soas: fix variable scoping * Add check_clamav_signatures. + * dsa-check-config: fix typo in log check for "OK" statuses. [ Julien Cristau ] * port dsa-check-statusfile and dsa-check-memory to python3 -- 2.20.1