From e87a2d28a64c0dd86788b8ec86bea25608a2fbdb Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 16 Mar 2024 00:20:34 +0200 Subject: also check for host in httpd before invoking acme --- frontends/scripts/acme.sh.tpl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'frontends/scripts') 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 -- cgit v1.2.3