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."