Skip to content

Commit aa3f516

Browse files
committed
clean up cluster_up.sh
1 parent 50865d1 commit aa3f516

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

docker/bin/cluster_up.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,19 @@ source ${DOCKER_BIN}/../.env
66
await_http() {
77
local exit_code
88
local attempt=0
9-
curl -s "$2" > /dev/null; exit_code=$?
109

11-
while [ ${attempt} -lt 5 ]; do
12-
echo "awaiting $1 ..."
10+
curl -s "$2" > /dev/null; exit_code=$?
11+
while [ "${exit_code}" -ne 0 ] && [ "${attempt}" -lt 5 ]; do
12+
echo "awaiting $1..."
1313
curl -s "$2" > /dev/null; exit_code=$?
14-
15-
if [ ${exit_code} -eq "0" ]; then
16-
return
17-
fi
1814
let "attempt+=1"
1915
sleep 5
2016
done
17+
18+
if [ ${exit_code} -eq "0" ]; then
19+
return
20+
fi
21+
2122
echo "$1 readiness test failed aborting..."
2223
exit 1
2324
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy