mirror of
https://github.com/casjaysdevdocker/gitea
synced 2026-06-24 14:01:00 -04:00
🐛 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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user