mirror of
https://github.com/nginx-proxy/docker-letsencrypt-nginx-proxy-companion
synced 2024-11-23 13:22:55 +01:00
Don't symlink certs if simp_le errored
This commit is contained in:
parent
40a4d9ce2f
commit
810a6cd27c
@ -225,10 +225,14 @@ function update_certs {
|
||||
|
||||
popd || return
|
||||
|
||||
for domain in "${!hosts_array}"; do
|
||||
create_links $base_domain $domain && should_reload_nginx='true'
|
||||
[[ $simp_le_return -eq 0 ]] && should_reload_nginx='true'
|
||||
done
|
||||
if [[ $simp_le_return -ne 2 ]]; then
|
||||
for domain in "${!hosts_array}"; do
|
||||
create_links $base_domain $domain && should_reload_nginx='true'
|
||||
done
|
||||
# Queue nginx reload if a certificate was issued or renewed
|
||||
[[ $simp_le_return -eq 0 ]] && should_reload_nginx='true'
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
cleanup_links && should_reload_nginx='true'
|
||||
|
Loading…
Reference in New Issue
Block a user