Increase grace for IS_NOTUPGRADED

This commit is contained in:
Romain Dessort 2017-04-03 08:44:46 -04:00
parent acca5f226e
commit 81c28cd59e

View file

@ -443,7 +443,7 @@ if [ -e /etc/debian_version ]; then
# Check if no package has been upgraded since $limit.
if [ "$IS_NOTUPGRADED" = 1 ]; then
last_upgrade=$(date +%s -d $(zgrep -h upgrade /var/log/dpkg.log* |sort -n |tail -1 |cut -f1 -d ' '))
limit=$(date +%s -d "now - 42 days")
limit=$(date +%s -d "now - 60 days")
if [ -f /var/log/evolinux/00_prepare_system.log ]; then
install_date=$(stat -c %Z /var/log/evolinux/00_prepare_system.log)
else