bundles/apt: fix date call in check_unattended_upgrades

This commit is contained in:
Franzi 2020-12-10 22:11:28 +01:00
parent be15458e1e
commit 8be6f9b78d
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -8,8 +8,8 @@ then
fi fi
mtime=$(stat -c %Y $statusfile) mtime=$(stat -c %Y $statusfile)
now=$(date +$s) now=$(date +%s)
if (( $now - $mtime > 60*60*8 )) if (( $now - $mtime > 60*60*24*8 ))
then then
echo "Status file is older than 8 days!" echo "Status file is older than 8 days!"
exit 3 exit 3