From c420852e0bfbd9da851538f196691de474da6ae9 Mon Sep 17 00:00:00 2001 From: casjay Date: Fri, 5 Jun 2026 17:41:48 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Set=20WORK=5FDIR=20for=20act=5Fr?= =?UTF-8?q?unner=20to=20avoid=20/root=20permission=20issues=20=F0=9F=90=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit act_runner runs as the git user which has no access to /root (Docker's WORKDIR). Setting WORK_DIR=/data/act_runner ensures the service starts from a directory the git user can access, preventing any git or file operations from inadvertently referencing /root. 05-dockerd.sh runs as root so no fix needed there. - rootfs/usr/local/etc/docker/init.d/zz-act_runner.sh: set WORK_DIR=/data/act_runner rootfs/usr/local/etc/docker/init.d/zz-act_runner.sh --- rootfs/usr/local/etc/docker/init.d/zz-act_runner.sh | 2 +- 1 file changed, 1 insertion(+), 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 f320377..eb80db1 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 @@ -171,7 +171,7 @@ RUN_DIR="/run/act_runner" LOG_DIR="/data/logs/act_runner" # - - - - - - - - - - - - - - - - - - - - - - - - - # Set the working dir -WORK_DIR="" +WORK_DIR="/data/act_runner" # - - - - - - - - - - - - - - - - - - - - - - - - - # port which service is listening on SERVICE_PORT="44015"