1
0

Don't symlink certs if simp_le errored

This commit is contained in:
Nicolas Duchon 2018-03-15 22:01:24 +01:00
parent 40a4d9ce2f
commit 810a6cd27c
No known key found for this signature in database
GPG Key ID: 91EF7BB1EECB961A

@ -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'