diff --git a/certbotd.sh b/certbotd.sh index 8a98393..10ff49d 100755 --- a/certbotd.sh +++ b/certbotd.sh @@ -161,11 +161,12 @@ case $1 in # But check if they still point here if domain_configured "${domain}" ; then ok "${domain} already issued" - continue else not_ok "${domain} has a certificate but it's not correctly configured, will remove it for now" remove_certificate "${domain}" fi + + continue # The file exists but it's empty and it was issued before elif test -f "/etc/letsencrypt/renewal/${domain}.conf" && test -d "/etc/letsencrypt/archive/${domain}"; then other_renewal="$(grep -l -m 1 "^authenticator = webroot$" /etc/letsencrypt/renewal/*.conf | head -1)"