dsa-check-config: fix typo in log check for "OK" statuses
authorAdam D. Barratt <adam@adam-barratt.org.uk>
Sat, 12 Oct 2019 18:50:13 +0000 (19:50 +0100)
committerAdam D. Barratt <adam@adam-barratt.org.uk>
Sat, 12 Oct 2019 18:50:13 +0000 (19:50 +0100)
It's mostly harmless, but let's fix it for consistency

Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
dsa-nagios-checks/checks/dsa-check-config
dsa-nagios-checks/debian/changelog

index 2772994..7ce992e 100755 (executable)
@@ -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
index dcde72c..e911a36 100644 (file)
@@ -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