diff --git a/entrypoint.sh b/entrypoint.sh index 0483339..c202eec 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -26,6 +26,9 @@ while true; do STATUS_CODE=$(curl -s --max-time 60 -o /dev/null -w "%{http_code}" "$CHECK_URL") echo "$STATUS_CODE" && [ "$STATUS_CODE" != "000" ] && break + + # 如果狀態碼為 "000",表示連線失敗,等待 60 秒後重試 + sleep 60 done # 將狀態碼輸出到環境變數