We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40a4d9c commit 810a6cdCopy full SHA for 810a6cd
app/letsencrypt_service
@@ -225,10 +225,14 @@ function update_certs {
225
226
popd || return
227
228
- for domain in "${!hosts_array}"; do
229
- create_links $base_domain $domain && should_reload_nginx='true'
230
- [[ $simp_le_return -eq 0 ]] && should_reload_nginx='true'
231
- done
+ if [[ $simp_le_return -ne 2 ]]; then
+ for domain in "${!hosts_array}"; do
+ create_links $base_domain $domain && should_reload_nginx='true'
+ done
232
+ # Queue nginx reload if a certificate was issued or renewed
233
+ [[ $simp_le_return -eq 0 ]] && should_reload_nginx='true'
234
+ fi
235
+
236
done
237
238
cleanup_links && should_reload_nginx='true'
0 commit comments