fix apache healthcheck

Signed-off-by: Zoey <zoey@z0ey.de>
Co-Authored-By: Simon L. <szaimen@e.mail.de>
This commit is contained in:
Zoey 2022-08-25 16:57:59 +02:00
parent ce7027d026
commit a9c4b1fdf4
2 changed files with 11 additions and 1 deletions

View file

@ -0,0 +1,8 @@
#!/bin/bash
curl -skfI localhost:8000 || exit 1
if [ "$APACHE_PORT" != '443' ]; then
curl -skfI localhost:"$APACHE_PORT" || exit 1
else
curl -skfI https://"$NC_DOMAIN":"$APACHE_PORT" || exit 1
fi