]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix two instances of SC2004 in nagios-check-tor-authority
authorrl1987 <rl1987@sdf.lonestar.org>
Wed, 6 Feb 2019 08:20:11 +0000 (10:20 +0200)
committerrl1987 <rl1987@sdf.lonestar.org>
Wed, 6 Feb 2019 08:20:11 +0000 (10:20 +0200)
contrib/dirauth-tools/nagios-check-tor-authority-cert

index 46dc7284b7bfcaf03895aabb80b24d0a06fb1b8d..7a60da16f0d745220cf9f889e1feb4a6aa5ef172 100755 (executable)
@@ -74,10 +74,10 @@ now=$(date +%s)
 if [ "$now" -ge "$expiryunix" ]; then
        echo "CRITICAL: Certificate expired $expirydate (authority $identity)."
        exit 2
-elif [ "$(( $now + 7*24*60*60 ))" -ge "$expiryunix" ]; then
+elif [ "$(( now + 7*24*60*60 ))" -ge "$expiryunix" ]; then
        echo "CRITICAL: Certificate expires $expirydate (authority $identity)."
        exit 2
-elif [ "$(( $now + 30*24*60*60 ))" -ge "$expiryunix" ]; then
+elif [ "$(( now + 30*24*60*60 ))" -ge "$expiryunix" ]; then
        echo "WARNING: Certificate expires $expirydate (authority $identity)."
        exit 1
 else