This commit is contained in:
parent
e5b110631a
commit
4faeb8063f
|
@ -111,7 +111,7 @@ and this project does not adhere to [Semantic Versioning](http://semver.org/spec
|
|||
* IS_SQUID for Stretch
|
||||
* IS_LOG2MAILAPACHE for Stretch
|
||||
* IS_AUTOIF for Stretch
|
||||
* IS_UPTIME warn if uptime is more thant 2y, was 1y
|
||||
* IS_UPTIME warn if uptime is more than 2y, was 1y
|
||||
* IS_NOTUPGRADED warn if last upgrade is older than 90d, was 30d
|
||||
* IS_TUNE2FS_M5 use python in place of bc for calculation
|
||||
* IS_EVOMAINTENANCEUSERS for Stretch
|
||||
|
|
|
@ -628,7 +628,7 @@ check_uptime() {
|
|||
limit=$(date -d "now - 2 year" +%s)
|
||||
last_reboot_at=$(($(date +%s) - $(cut -f1 -d '.' /proc/uptime)))
|
||||
if [ "$limit" -gt "$last_reboot_at" ]; then
|
||||
failed "IS_UPTIME" "machine has an uptime of more thant 2 years, reboot on new kernel advised"
|
||||
failed "IS_UPTIME" "machine has an uptime of more than 2 years, reboot on new kernel advised"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue