bundles/apt: fix date call in check_unattended_upgrades
This commit is contained in:
parent
be15458e1e
commit
8be6f9b78d
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue