🐛 Set WORK_DIR for act_runner to avoid /root permission issues 🐛

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
This commit is contained in:
2026-06-05 17:41:48 -04:00
parent 0ff1923d3e
commit c420852e0b
@@ -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"