From 3c283d2bb416794e17fe5e71e1a93e7116dc7b0f Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Fri, 13 Oct 2017 12:09:12 +0200 Subject: [PATCH] evoacme: execute evoacme in cron mode --- evoacme/files/certbot.cron | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/evoacme/files/certbot.cron b/evoacme/files/certbot.cron index eb2ddb3a..60007b4c 100755 --- a/evoacme/files/certbot.cron +++ b/evoacme/files/certbot.cron @@ -7,7 +7,9 @@ # [ -f /etc/default/evoacme ] && . /etc/default/evoacme -[ -z "${CRT_DIR}" ] && CRT_DIR='/etc/letsencrypt' +CRT_DIR="${CRT_DIR:-'/etc/letsencrypt'}" + +export CRON=1 find "${CRT_DIR}" -maxdepth 1 -mindepth 1 -type d ! -path "*accounts" -exec basename {} \; | while read vhost; do evoacme "$vhost"