Compare commits
1 changed files with 1 additions and 9 deletions
|
|
@ -191,15 +191,7 @@ for unit in "${handshakes[@]}"; do
|
||||||
systemctl restart "$unit"
|
systemctl restart "$unit"
|
||||||
done
|
done
|
||||||
for port in 3932 3933 3934; do
|
for port in 3932 3933 3934; do
|
||||||
ready=0
|
test "$(curl -fsS "http://127.0.0.1:${port}/health" | jq -r .ok)" = "true"
|
||||||
for attempt in $(seq 1 30); do
|
|
||||||
if test "$(curl -fsS "http://127.0.0.1:${port}/health" 2>/dev/null | jq -r .ok 2>/dev/null)" = "true"; then
|
|
||||||
ready=1
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
sleep 1
|
|
||||||
done
|
|
||||||
test "$ready" = 1
|
|
||||||
done
|
done
|
||||||
|
|
||||||
before_chenglu="$(git --git-dir="${repository_root}/chenglu-agent.git" rev-parse main)"
|
before_chenglu="$(git --git-dir="${repository_root}/chenglu-agent.git" rev-parse main)"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue