fix: sometimes renewals fail

This commit is contained in:
f 2024-12-28 13:34:53 -03:00
parent 48535f4382
commit f2c96a0218
No known key found for this signature in database

View file

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