update script
This commit is contained in:
parent
a77d94c54f
commit
99d941d146
1 changed files with 3 additions and 1 deletions
|
@ -10,7 +10,9 @@ tail ${temp_file}
|
|||
error_count=0
|
||||
while true ; do
|
||||
status=$(curl -w '%{http_code}\n' -s -o /dev/null "http://localhost:8080/api/v1/health")
|
||||
if [[ x"${status}" != x200 ]] ; then
|
||||
if [[ x"${status}" = x200 ]] ; then
|
||||
break
|
||||
else
|
||||
error_count=$((error_count + 1))
|
||||
fi
|
||||
if [[ ${error_count} -ge 180 ]] ; then
|
||||
|
|
Loading…
Add table
Reference in a new issue