This commit is contained in:
Bruno Zell 2018-10-03 05:11:59 +02:00
parent 66585d9765
commit a1104ffceb
1 changed files with 3 additions and 0 deletions

View File

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