From def7ef5fea0685efcc4ecd08456a91e09bbcf485 Mon Sep 17 00:00:00 2001 From: AlpsTsui Date: Sat, 26 Feb 2022 11:13:19 +0800 Subject: [PATCH] Fix: HealthCheck Script will Fail if the ENV GITLAB_HTTPS set True --- assets/runtime/functions | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/assets/runtime/functions b/assets/runtime/functions index 8d1ca5ec..2b841e0b 100644 --- a/assets/runtime/functions +++ b/assets/runtime/functions @@ -1641,9 +1641,13 @@ update_ssh_listen_port() { generate_healthcheck_script() { # configure healthcheck script ## https://docs.gitlab.com/ee/user/admin_area/monitoring/health_check.html + local HEALTHCHECK_PROTOCOL="http" + if [[ "${GITLAB_HTTPS}" == true ]]; then + HEALTHCHECK_PROTOCOL="${HEALTHCHECK_PROTOCOL}s" + fi cat > /usr/local/sbin/healthcheck <