From 5a09ee456754135667b9cdfcbce8c78c74de8571 Mon Sep 17 00:00:00 2001 From: Chris Kim Date: Fri, 18 Jun 2021 13:53:29 -0400 Subject: [PATCH] Update install.sh to use for validating rancher connection Signed-off-by: Chris Kim --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 401d3f88..6509ff52 100755 --- a/install.sh +++ b/install.sh @@ -473,7 +473,7 @@ validate_rancher_connection() { RANCHER_SUCCESS=false if [ -n "${CATTLE_SERVER}" ] && [ "${CATTLE_REMOTE_ENABLED}" = "true" ]; then i=1 - while [ "${i}" -ne "12" ]; do + while [ "${i}" -ne "${RETRYCOUNT}" ]; do RESPONSE=$(curl --connect-timeout 60 --max-time 60 --write-out "%{http_code}\n" ${CURL_CAFLAG} ${CURL_LOG} -fL "${CATTLE_SERVER}/healthz" -o /dev/null) case "${RESPONSE}" in 200)