Skip to content

Commit

Permalink
Merge pull request #37 from Oats87/check-rancher-connection-retrycount
Browse files Browse the repository at this point in the history
Update install.sh to use for validating rancher connection
  • Loading branch information
Oats87 authored Jun 18, 2021
2 parents 7a0bea5 + 5a09ee4 commit faf809a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit faf809a

Please sign in to comment.