diff --git a/certbotd.sh b/certbotd.sh index 8ec71dd..069af00 100755 --- a/certbotd.sh +++ b/certbotd.sh @@ -112,7 +112,8 @@ case $1 in if test -s "/etc/letsencrypt/renewal/${domain}.conf"; then ok "${domain} already issued" continue - else + # 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 ok "${domain} renewal conf was empty, fixing..." other_renewal="$(grep -l -m 1 "^authenticator = webroot$" /etc/letsencrypt/renewal/*.conf | head -1)"