From 265f8239551ddfa3e12363c508e77567f8b41b1f Mon Sep 17 00:00:00 2001 From: casjay Date: Sat, 29 Nov 2025 14:41:59 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20Update=20codebase=20?= =?UTF-8?q?=F0=9F=97=83=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit rootfs/usr/local/etc/docker/init.d/zz-act_runner.sh --- .../usr/local/etc/docker/init.d/zz-act_runner.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/rootfs/usr/local/etc/docker/init.d/zz-act_runner.sh b/rootfs/usr/local/etc/docker/init.d/zz-act_runner.sh index c428040..a1f6d4e 100755 --- a/rootfs/usr/local/etc/docker/init.d/zz-act_runner.sh +++ b/rootfs/usr/local/etc/docker/init.d/zz-act_runner.sh @@ -258,8 +258,20 @@ __run_precopy() { __execute_prerun() { # Define environment local hostname=${HOSTNAME} + local max=30 + local count=0 + local status=0 # Define actions/commands - + while [ $count -lt $max ]; do + echo "Waiting for gitea to start" + status=$(curl -q -LSsf -o /dev/null -w '%{http_code}' --max-time 5 http://localhost) + if [ "$status" = "200" ]; then + break + else + sleep 30 + count=$((count + 1)) + fi + done # allow custom functions if builtin type -t __execute_prerun_local | grep -q 'function'; then __execute_prerun_local; fi }