Amelioration of check apitcron. #936

This commit is contained in:
Benoît S. 2014-10-08 17:13:37 +02:00
parent 481369107c
commit 9bf216c5ec

View file

@ -184,7 +184,8 @@ if [ -e /etc/debian_version ]; then
if [ "$IS_APTICRON" = 1 ]; then
status="OK"
test -e /etc/cron.d/apticron || status="fail"
test -e /etc/cron.d/apticron && status="fail"
test -e /etc/cron.daily/apticron || status="fail"
test "$status" = "fail" || test -e /usr/bin/apt-get.bak || status="fail"
test "$status" = "fail" || /usr/bin/apt-get.bak -qq update || status="fail"
test "$status" = "fail" && echo 'IS_APTICRON FAILED!'