update script

This commit is contained in:
Shinsuke Sugaya 2024-02-09 22:29:13 +09:00
parent a77d94c54f
commit 99d941d146

View file

@ -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