mirror of
https://github.com/minio/minio.git
synced 2025-04-29 06:08:00 -04:00
Updated healthcheck file (#5647)
Healthcheck is no longer checking for a file so the -I in the curl check will fail.
This commit is contained in:
parent
6882467db8
commit
bbd7f8a4af
@ -34,7 +34,7 @@ healthcheck_main () {
|
|||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
# Get the http response code
|
# 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
|
# Get the http response body
|
||||||
http_response_body=$(curl -k -s ${scheme}${address}${resource})
|
http_response_body=$(curl -k -s ${scheme}${address}${resource})
|
||||||
@ -45,7 +45,7 @@ healthcheck_main () {
|
|||||||
if [ "$http_response" = "403" ] && \
|
if [ "$http_response" = "403" ] && \
|
||||||
[ "$http_response_body" = "SSL required" ]; then
|
[ "$http_response_body" = "SSL required" ]; then
|
||||||
scheme="https://"
|
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
|
fi
|
||||||
|
|
||||||
# If http_repsonse is 200 - server is up.
|
# If http_repsonse is 200 - server is up.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user