From c789955a881ccdec4e1148c433f772cd4d5161b5 Mon Sep 17 00:00:00 2001 From: James Elliott Date: Thu, 5 Aug 2021 21:44:49 +1000 Subject: [PATCH] fix: healthcheck always exit 0 (#2250) --- healthcheck.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/healthcheck.sh b/healthcheck.sh index afd152fa..fea407ec 100755 --- a/healthcheck.sh +++ b/healthcheck.sh @@ -1,11 +1,11 @@ #!/bin/sh +source /app/.healthcheck.env + if [ -z "${X_AUTHELIA_HEALTHCHECK}" ]; then exit 0 fi -source /app/.healthcheck.env - if [ -z "${X_AUTHELIA_HEALTHCHECK_SCHEME}" ]; then X_AUTHELIA_HEALTHCHECK_SCHEME=http fi