summaryrefslogtreecommitdiff
path: root/frontends/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/scripts')
-rw-r--r--frontends/scripts/acme.sh.tpl5
1 files changed, 5 insertions, 0 deletions
diff --git a/frontends/scripts/acme.sh.tpl b/frontends/scripts/acme.sh.tpl
index 2b588f4..546bb55 100644
--- a/frontends/scripts/acme.sh.tpl
+++ b/frontends/scripts/acme.sh.tpl
@@ -9,6 +9,11 @@ function handle_cert {
echo "Not serving $host, skipping..."
return
fi
+ grep -q "^server \"$host\"" /etc/httpd.conf
+ if [ $? -ne 0 ]; then
+ echo "Host $host not configured in httpd, skipping..."
+ return
+ fi
# Create symlink, so that relayd also can read it.
crt_path=/etc/ssl/$host