fix: sync after failing renewal
This commit is contained in:
parent
c75818e3a4
commit
45ad6d1e71
1 changed files with 5 additions and 2 deletions
|
@ -64,13 +64,16 @@ case $1 in
|
|||
# Renew certificates, trust in certbot's algorithms
|
||||
renew)
|
||||
if /usr/bin/certbot renew --quiet --agree-tos ; then
|
||||
ret=0
|
||||
ok "Renewed certificates"
|
||||
touch "${updated}"
|
||||
else
|
||||
ret=$?
|
||||
not_ok "Certificate renewal failed"
|
||||
exit $ret
|
||||
fi
|
||||
|
||||
# Sync anyway in case just some certificates failed
|
||||
touch "${updated}"
|
||||
ensure $ret
|
||||
;;
|
||||
bootstrap)
|
||||
test -d "/etc/letsencrypt/live/${SUTTY}" && exit 0
|
||||
|
|
Loading…
Reference in a new issue