implemented cron mode

This commit is contained in:
2021-10-27 11:14:09 +02:00
parent 2ad37e8fe3
commit bcd5130866
3 changed files with 33 additions and 3 deletions

View File

@@ -13,7 +13,7 @@
# * PROXYAPTPORT: Working port for APT proxy
# ------------------------------------------------------------------------------
export VER_upgrade_dist="0.1.3"
export VER_upgrade_dist="0.2.0"
# As aptitude might fail if clock is too far from real time, we need to depend
# on ntp
@@ -70,6 +70,12 @@ precheck_upgrade_dist()
fi
}
cron_upgrade_dist()
{
pkgupdt
pkgupgd
}
export -f upgrade_dist
export -f precheck_upgrade_dist