mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
Fix two instances of SC2004 in nagios-check-tor-authority
This commit is contained in:
parent
bfd1d70243
commit
1fc8bbff9c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user