From a1104ffceb42b3151a864948cbc0d0a4fe98280a Mon Sep 17 00:00:00 2001 From: Bruno Zell Date: Wed, 3 Oct 2018 05:11:59 +0200 Subject: [PATCH] comments --- src/scripts/run_certbot.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/scripts/run_certbot.sh b/src/scripts/run_certbot.sh index 7be3067..066799b 100644 --- a/src/scripts/run_certbot.sh +++ b/src/scripts/run_certbot.sh @@ -14,7 +14,10 @@ set -x # Loop over every domain we can find for domain in $(parse_domains); do if is_renewal_required $domain; then + # Renewal required for this doman. + # Last one happened over a week ago (or never) if get_certificate $domain $CERTBOT_EMAIL; then + # Renewal successful. Update timestamp... update_renewal_timestamp $domain else error "Cerbot failed for $domain. Check the logs for details."