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
|
||||
|
||||
mtime=$(stat -c %Y $statusfile)
|
||||
now=$(date +$s)
|
||||
if (( $now - $mtime > 60*60*8 ))
|
||||
now=$(date +%s)
|
||||
if (( $now - $mtime > 60*60*24*8 ))
|
||||
then
|
||||
echo "Status file is older than 8 days!"
|
||||
exit 3
|
||||
|
|
Loading…
Reference in a new issue