summaryrefslogtreecommitdiff
path: root/frontends/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/scripts')
-rw-r--r--frontends/scripts/acme.sh.tpl8
1 files changed, 5 insertions, 3 deletions
diff --git a/frontends/scripts/acme.sh.tpl b/frontends/scripts/acme.sh.tpl
index 8d30609..b3301fa 100644
--- a/frontends/scripts/acme.sh.tpl
+++ b/frontends/scripts/acme.sh.tpl
@@ -44,12 +44,14 @@ handle_cert () {
has_update=no
<% for my $host (@$acme_hosts) { -%>
-<% for my $prefix ('', 'www.', 'standby.') { -%>
-handle_cert <%= $prefix.$host %>
+handle_cert <%= $host %>
+if [ $? -eq 0 ]; then
+ has_update=yes
+fi
+handle_cert standby.<%= $host %>
if [ $? -eq 0 ]; then
has_update=yes
fi
-<% } -%>
<% } -%>
# Current server's FQDN (e.g. for mail server certs)