summaryrefslogtreecommitdiff
path: root/contrib/dirauth-tools
diff options
context:
space:
mode:
authorrl1987 <rl1987@sdf.lonestar.org>2019-02-06 10:20:11 +0200
committerrl1987 <rl1987@sdf.lonestar.org>2019-02-06 10:20:11 +0200
commit1fc8bbff9cefd243725c04890426a28204d7b0d2 (patch)
tree6c1a15c856df70824d0c137fb08ab24d27b1f591 /contrib/dirauth-tools
parentbfd1d702433fde0c551a1c79d410d87fe22feb30 (diff)
downloadtor-1fc8bbff9cefd243725c04890426a28204d7b0d2.tar.gz
tor-1fc8bbff9cefd243725c04890426a28204d7b0d2.zip
Fix two instances of SC2004 in nagios-check-tor-authority
Diffstat (limited to 'contrib/dirauth-tools')
-rwxr-xr-xcontrib/dirauth-tools/nagios-check-tor-authority-cert4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/dirauth-tools/nagios-check-tor-authority-cert b/contrib/dirauth-tools/nagios-check-tor-authority-cert
index 46dc7284b7..7a60da16f0 100755
--- a/contrib/dirauth-tools/nagios-check-tor-authority-cert
+++ b/contrib/dirauth-tools/nagios-check-tor-authority-cert
@@ -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