Merge branch '35-is_evoacme_certbotcron' into 'master'

Resolve "IS_EVOACME_CRON"

Closes #35

See merge request evolix/evocheck!15
This commit is contained in:
Benoît S. 2018-06-13 18:10:57 +02:00
commit fff5971310

View file

@ -102,6 +102,7 @@ IS_EVOBACKUP=1
IS_DUPLICATE_FS_LABEL=1
IS_EVOMAINTENANCE_FW=1
IS_EVOLIX_USER=1
IS_EVOACME_CRON=1
IS_EVOACME_LIVELINKS=1
#Proper to OpenBSD
@ -768,6 +769,15 @@ if [ -e /etc/debian_version ]; then
getent passwd evolix >/dev/null && echo 'IS_EVOLIX_USER FAILED!'
fi
if [ "$IS_EVOACME_CRON" = 1 ]; then
if [ -f "/usr/local/sbin/evoacme" ]; then
# Old cron file, should be deleted
test -f /etc/cron.daily/certbot && echo 'IS_EVOACME_CRON FAILED!'
# evoacme cron file should be present
test -f /etc/cron.daily/evoacme || echo 'IS_EVOACME_CRON FAILED!'
fi
fi
if [ "$IS_EVOACME_LIVELINKS" = 1 ]; then
if [ -x "$(which evoacme)" ]; then
for live in /etc/letsencrypt/*/live; do