Skip to content

Commit 31325c1

Browse files
cdalvarosolidnerd
authored andcommitted
fix: healthcheck and GITLAB_HTTPS=true
Follow redirects Allow connections to SSL sites without certs
1 parent c250de7 commit 31325c1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

assets/build/install.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,8 +431,9 @@ EOF
431431
cat > /usr/local/sbin/healthcheck <<EOF
432432
#!/bin/bash
433433
url=http://localhost/-/liveness
434-
curl -s \$url
435-
[[ "\$(curl -s -o /dev/null -I -w '%{http_code}' \$url)" == "200" ]]
434+
options=( '--insecure' '--location' '--silent' )
435+
curl "\${options[@]}" \$url
436+
[[ "\$(curl \${options[@]} -o /dev/null -I -w '%{http_code}' \$url)" == "200" ]]
436437
EOF
437438
chmod +x /usr/local/sbin/healthcheck
438439

0 commit comments

Comments
 (0)