Update IS_UPTIME check for OpenBSD

This commit is contained in:
Tristan PILAT 2019-03-22 14:57:18 +01:00
parent e4269d793c
commit 08edb86da6

View file

@ -184,6 +184,7 @@ fi
# Check if the server is running for more than a year.
if [ "$IS_UPTIME" = 1 ]; then
if [ $(uptime | cut -d" " -f 4) -gt 365 ]; then
echo 'IS_UPTIME FAILED!'
fi
fi