From 9335cf585aea8498fa220e600b8a3c7eec6290ea Mon Sep 17 00:00:00 2001 From: Jeffery Date: Thu, 26 Mar 2026 09:34:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=80=A3=E7=B7=9A=E5=A4=B1=E6=95=97?= =?UTF-8?q?=EF=BC=8C=E7=AD=89=E5=BE=85=2060=20=E7=A7=92=E5=BE=8C=E9=87=8D?= =?UTF-8?q?=E8=A9=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entrypoint.sh | 3 +++ 1 file changed, 3 insertions(+) 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 # 將狀態碼輸出到環境變數 -- 2.48.1