comments
This commit is contained in:
parent
66585d9765
commit
a1104ffceb
|
@ -14,7 +14,10 @@ set -x
|
||||||
# Loop over every domain we can find
|
# Loop over every domain we can find
|
||||||
for domain in $(parse_domains); do
|
for domain in $(parse_domains); do
|
||||||
if is_renewal_required $domain; then
|
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
|
if get_certificate $domain $CERTBOT_EMAIL; then
|
||||||
|
# Renewal successful. Update timestamp...
|
||||||
update_renewal_timestamp $domain
|
update_renewal_timestamp $domain
|
||||||
else
|
else
|
||||||
error "Cerbot failed for $domain. Check the logs for details."
|
error "Cerbot failed for $domain. Check the logs for details."
|
||||||
|
|
Loading…
Reference in New Issue