From bbd7f8a4afe6b0897ecc7c1049ad95ac0e265d8f Mon Sep 17 00:00:00 2001 From: tparker00 Date: Wed, 14 Mar 2018 03:51:56 -0400 Subject: [PATCH] Updated healthcheck file (#5647) Healthcheck is no longer checking for a file so the -I in the curl check will fail. --- dockerscripts/healthcheck.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dockerscripts/healthcheck.sh b/dockerscripts/healthcheck.sh index c0ccddecc..28b7d39cb 100755 --- a/dockerscripts/healthcheck.sh +++ b/dockerscripts/healthcheck.sh @@ -34,7 +34,7 @@ healthcheck_main () { exit 0 else # Get the http response code - http_response=$(curl -s -k -o /dev/null -I -w "%{http_code}" ${scheme}${address}${resource}) + http_response=$(curl -s -k -o /dev/null -w "%{http_code}" ${scheme}${address}${resource}) # Get the http response body http_response_body=$(curl -k -s ${scheme}${address}${resource}) @@ -45,7 +45,7 @@ healthcheck_main () { if [ "$http_response" = "403" ] && \ [ "$http_response_body" = "SSL required" ]; then scheme="https://" - http_response=$(curl -s -k -o /dev/null -I -w "%{http_code}" ${scheme}${address}${resource}) + http_response=$(curl -s -k -o /dev/null -w "%{http_code}" ${scheme}${address}${resource}) fi # If http_repsonse is 200 - server is up.