Fix two instances of SC2004 in nagios-check-tor-authority

This commit is contained in:
rl1987 2019-02-06 10:20:11 +02:00
parent bfd1d70243
commit 1fc8bbff9c

View File

@ -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