fix: skip unneeded dirs

This commit is contained in:
f 2024-12-28 17:53:50 -03:00
parent 6abce5891b
commit aab2b783d9
No known key found for this signature in database

View file

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