forked from evolix/evocheck
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:
commit
fff5971310
10
evocheck.sh
10
evocheck.sh
|
@ -102,6 +102,7 @@ IS_EVOBACKUP=1
|
||||||
IS_DUPLICATE_FS_LABEL=1
|
IS_DUPLICATE_FS_LABEL=1
|
||||||
IS_EVOMAINTENANCE_FW=1
|
IS_EVOMAINTENANCE_FW=1
|
||||||
IS_EVOLIX_USER=1
|
IS_EVOLIX_USER=1
|
||||||
|
IS_EVOACME_CRON=1
|
||||||
IS_EVOACME_LIVELINKS=1
|
IS_EVOACME_LIVELINKS=1
|
||||||
|
|
||||||
#Proper to OpenBSD
|
#Proper to OpenBSD
|
||||||
|
@ -768,6 +769,15 @@ if [ -e /etc/debian_version ]; then
|
||||||
getent passwd evolix >/dev/null && echo 'IS_EVOLIX_USER FAILED!'
|
getent passwd evolix >/dev/null && echo 'IS_EVOLIX_USER FAILED!'
|
||||||
fi
|
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 [ "$IS_EVOACME_LIVELINKS" = 1 ]; then
|
||||||
if [ -x "$(which evoacme)" ]; then
|
if [ -x "$(which evoacme)" ]; then
|
||||||
for live in /etc/letsencrypt/*/live; do
|
for live in /etc/letsencrypt/*/live; do
|
||||||
|
|
Loading…
Reference in a new issue