Skip to content

Commit

Permalink
Updated healthcheck file (minio#5647)
Browse files Browse the repository at this point in the history
Healthcheck is no longer checking for a file so the -I in the curl check will fail.
  • Loading branch information
tparker00 authored and nitisht committed Mar 14, 2018
1 parent 6882467 commit bbd7f8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dockerscripts/healthcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand All @@ -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.
Expand Down

0 comments on commit bbd7f8a

Please sign in to comment.