From b2e33e8a51351cdac7311cb7c2bd8d1744933bb4 Mon Sep 17 00:00:00 2001 From: Simon L Date: Thu, 17 Aug 2023 14:18:25 +0200 Subject: [PATCH] apache - improve healtcheck Signed-off-by: Simon L --- Containers/apache/healthcheck.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Containers/apache/healthcheck.sh b/Containers/apache/healthcheck.sh index 835ec4d4..3a54ef04 100644 --- a/Containers/apache/healthcheck.sh +++ b/Containers/apache/healthcheck.sh @@ -3,4 +3,7 @@ nc -z "$NEXTCLOUD_HOST" 9000 || exit 0 nc -z localhost 8000 || exit 1 nc -z localhost "$APACHE_PORT" || exit 1 -nc -z "$NC_DOMAIN" 443 || exit 1 +if ! nc -z "$NC_DOMAIN" 443; then + echo "Could not reach $NC_DOMAIN on port 443." + exit 1 +fi