aboutsummaryrefslogtreecommitdiff
path: root/scripts/hostclass/public_webserver
diff options
context:
space:
mode:
authorCullum Smith <cullum@sacredheartsc.com>2024-10-28 22:14:59 -0400
committerCullum Smith <cullum@sacredheartsc.com>2024-10-28 22:14:59 -0400
commit7eb111136453d0e8d8451d7dd85ba9892318f294 (patch)
treeb743ed4dba823a5e44b81670453cd5365697caa8 /scripts/hostclass/public_webserver
parent6566745769b86f19d5d3b54f7de7f0c89a103b23 (diff)
downloadinfrastructure-7eb111136453d0e8d8451d7dd85ba9892318f294.tar.gz
acme/nginx/asterisk fixes
Diffstat (limited to 'scripts/hostclass/public_webserver')
-rw-r--r--scripts/hostclass/public_webserver8
1 files changed, 3 insertions, 5 deletions
diff --git a/scripts/hostclass/public_webserver b/scripts/hostclass/public_webserver
index 721cbfc..3877313 100644
--- a/scripts/hostclass/public_webserver
+++ b/scripts/hostclass/public_webserver
@@ -27,14 +27,12 @@ service nginx restart
# Acquire public TLS certificates.
install_template -m 0600 /usr/local/etc/sudoers.d/acme
-for cert in $acme_certs; do
- eval "acme_domains=\${acme_${cert}_domains}"
+for certname in $acme_certs; do
+ eval "acme_domains=\${acme_${certname}_domains}"
acme_install_certificate \
- -C "${acme_cert_dir}/${cert}.ca.crt" \
- -c "${acme_cert_dir}/${cert}.crt" \
- -k "${acme_cert_dir}/${cert}.key" \
-g "$nginx_user" \
-r 'sudo service nginx reload' \
+ "$certname" \
$acme_domains
done