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.
This commit is contained in:
Cyra
2026-03-29 18:25:30 -07:00
parent 034a196720
commit e949ed75a7

View File

@@ -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" \