diff options
Diffstat (limited to 'tools/rancher/rancher-cluster.sh')
-rw-r--r-- | tools/rancher/rancher-cluster.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/rancher/rancher-cluster.sh b/tools/rancher/rancher-cluster.sh index 129042f..555b9bd 100644 --- a/tools/rancher/rancher-cluster.sh +++ b/tools/rancher/rancher-cluster.sh @@ -227,7 +227,7 @@ function wait_till_healthy() { id=$(rancher ps | grep " $service " | awk "{print \$1}") health=$(rancher inspect $id | jq -r ".healthState") state=$(rancher inspect $id | jq -r ".state") - while [[ $tries > 0 && "$health" != "healthy" ]]; do + while [[ $tries -gt 0 && "$health" != "healthy" ]]; do health=$(rancher inspect $id | jq -r ".healthState") echo $service is $health sleep 10 |