From 9bf216c5ec7daaa9cf5c4283a0011e69e759968f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20S=C3=89RIE?= Date: Wed, 8 Oct 2014 17:13:37 +0200 Subject: [PATCH] Amelioration of check apitcron. #936 --- evocheck.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/evocheck.sh b/evocheck.sh index 154bc53..d15e835 100755 --- a/evocheck.sh +++ b/evocheck.sh @@ -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!'