From e949ed75a7967498377effa31b96c52597c3af2c Mon Sep 17 00:00:00 2001 From: Cyra Date: Sun, 29 Mar 2026 18:25:30 -0700 Subject: [PATCH] fix(forgejo-runner): cd to /root before runner registration forgejo-runner register writes .runner config to the current working directory. The install script runs in a temp directory (via build.func), so the config was lost on cleanup. The systemd service expects it in /root (WorkingDirectory=/root), so cd there before registering. --- install/forgejo-runner-install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install/forgejo-runner-install.sh b/install/forgejo-runner-install.sh index f8e7abc2..3b1c3abe 100644 --- a/install/forgejo-runner-install.sh +++ b/install/forgejo-runner-install.sh @@ -60,6 +60,7 @@ msg_ok "Installed Forgejo Runner" msg_info "Registering Forgejo Runner" export DOCKER_HOST="unix:///run/podman/podman.sock" +cd /root forgejo-runner register \ --instance "$FORGEJO_INSTANCE" \ --token "$FORGEJO_RUNNER_TOKEN" \