fix: logging

This commit is contained in:
f 2024-12-28 17:12:26 -03:00
parent 45ad6d1e71
commit bb3b7c8aec
No known key found for this signature in database

View file

@ -162,13 +162,13 @@ case $1 in
fi
# 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)"
if test -z "${other_renewal}"; then
not_ok "${domain} couldn't fix"
not_ok "${domain} renewal conf was empty but couldn't fix"
ensure 1
else
ok "${domain} renewal conf was empty and it was fixed"
fi
other_domain="$(basename "${other_renewal}" .conf)"