diff options
| author | Paul Buetow <paul@buetow.org> | 2024-03-16 00:20:34 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-03-16 00:20:34 +0200 |
| commit | e87a2d28a64c0dd86788b8ec86bea25608a2fbdb (patch) | |
| tree | 60f81c14a1e61c07977294200c0d070a72a74f7f /frontends/scripts | |
| parent | d719cb0762f1a5c83f6e18858d6ad7f7bb6035a7 (diff) | |
also check for host in httpd before invoking acme
Diffstat (limited to 'frontends/scripts')
| -rw-r--r-- | frontends/scripts/acme.sh.tpl | 5 |
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 |
