fixed wait for server script

This commit is contained in:
jasquat 2022-08-02 08:33:03 -04:00
parent 7a3b3e6085
commit 8b640cdd6a
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ fi
echo "waiting for backend to come up..."
attempts=0
while [[ "$(curl -s -o /dev/null -w '%{http_code}' http://localhost:7000/admin/token)" != "200" ]]; do
while [[ "$(curl -s -o /dev/null -w '%{http_code}' http://localhost:7000/v1.0/status)" != "200" ]]; do
if [[ "$attempts" -gt "$max_attempts" ]]; then
>&2 echo "ERROR: Server not up after $max_attempts attempts. There is probably a problem"
exit 1