From a46ba76ca932c5e3e8eff2fc91368e9130327645 Mon Sep 17 00:00:00 2001 From: casjay Date: Sat, 29 Nov 2025 15:21:51 -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/08-gitea.sh rootfs/usr/local/etc/docker/init.d/zz-act_runner.sh --- rootfs/usr/local/etc/docker/init.d/08-gitea.sh | 2 +- rootfs/usr/local/etc/docker/init.d/zz-act_runner.sh | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/rootfs/usr/local/etc/docker/init.d/08-gitea.sh b/rootfs/usr/local/etc/docker/init.d/08-gitea.sh index 2bada87..77b137a 100755 --- a/rootfs/usr/local/etc/docker/init.d/08-gitea.sh +++ b/rootfs/usr/local/etc/docker/init.d/08-gitea.sh @@ -320,7 +320,7 @@ __update_conf_files() { find "$DATA_DIR" -type d -exec chmod 0777 {} \; chown -Rf $SERVICE_USER:$SERVICE_GROUP "$DATA_DIR" 2>/dev/null fi - [ -f "$DATABASE_DIR/gitea.db" ] && chown -Rf $SERVICE_USER:$SERVICE_GROUP "$DATABASE_DIR/gitea.db" 2>/dev/null + [ -d "$DATABASE_DIR" ] && chown -Rf $SERVICE_USER:$SERVICE_GROUP "$DATABASE_DIR" 2>/dev/null # allow custom functions if builtin type -t __update_conf_files_local | grep -q 'function'; then __update_conf_files_local; fi 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 a1f6d4e..913b342 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 @@ -263,8 +263,7 @@ __execute_prerun() { 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) + status=$(curl -q -LSsf -o /dev/null -w '%{http_code}' --max-time 5 http://localhost 2>/dev/null) if [ "$status" = "200" ]; then break else