fix: skip unneeded dirs
This commit is contained in:
parent
6abce5891b
commit
aab2b783d9
1 changed files with 2 additions and 1 deletions
|
@ -161,11 +161,12 @@ case $1 in
|
||||||
# But check if they still point here
|
# But check if they still point here
|
||||||
if domain_configured "${domain}" ; then
|
if domain_configured "${domain}" ; then
|
||||||
ok "${domain} already issued"
|
ok "${domain} already issued"
|
||||||
continue
|
|
||||||
else
|
else
|
||||||
not_ok "${domain} has a certificate but it's not correctly configured, will remove it for now"
|
not_ok "${domain} has a certificate but it's not correctly configured, will remove it for now"
|
||||||
remove_certificate "${domain}"
|
remove_certificate "${domain}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
continue
|
||||||
# The file exists but it's empty and it was issued before
|
# 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
|
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)"
|
other_renewal="$(grep -l -m 1 "^authenticator = webroot$" /etc/letsencrypt/renewal/*.conf | head -1)"
|
||||||
|
|
Loading…
Reference in a new issue