From 63f43d622235962280a54140162d63a433905783 Mon Sep 17 00:00:00 2001 From: ms Date: Tue, 9 Dec 2025 13:09:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E5=B8=83=E5=BA=94=E7=94=A8=20Lucky=20?= =?UTF-8?q?2.23.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/lucky/2.23.1/run/start.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/lucky/2.23.1/run/start.sh b/apps/lucky/2.23.1/run/start.sh index 27858e6d9..4d33c1d39 100644 --- a/apps/lucky/2.23.1/run/start.sh +++ b/apps/lucky/2.23.1/run/start.sh @@ -3,6 +3,7 @@ DEFAULT_PORT=16601 PORT_FILE="/app/conf/port" WAIT_SECONDS=30 +DELAY_AFTER_PORT_UP=5 if [ -f "$PORT_FILE" ]; then DETECT_PORT=$(cat "$PORT_FILE") @@ -30,7 +31,8 @@ while ! nc -z 127.0.0.1 "${DETECT_PORT}" 2>/dev/null; do done if nc -z 127.0.0.1 "${DETECT_PORT}" 2>/dev/null; then - echo "Port ${DETECT_PORT} is up." + echo "Port ${DETECT_PORT} is up. Waiting extra ${DELAY_AFTER_PORT_UP}s..." + sleep ${DELAY_AFTER_PORT_UP} else echo "Port ${DETECT_PORT} still not open, continuing anyway." fi