gitea-runner.service: set HOME, which User= used to set

Without a user, the service has no HOME, and the runner needs it for its cache directory:
registration failed with "cache.dir is unset and the user home directory could not be
determined".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V27snprgiQMRMB6RRDNjCX
This commit is contained in:
Job79andClaude Opus 5.5 committed 2026-11-14 11:47:15 +00:00
1 parent cdc4a84658
commit 042583be77
1 file changed
+1
@@ -11,6 +11,7 @@ Requires=podman.socket
# get the socket (see config.yaml).
WorkingDirectory=/var/lib/gitea-runner
EnvironmentFile=/var/lib/gitea-runner/runner.env
Environment=HOME=/var/lib/gitea-runner
Environment=DOCKER_HOST=unix:///run/podman/podman.sock
# The hostname is the runner's name. /etc is read-only, so it is set on every start.
ExecStartPre=/usr/bin/hostnamectl hostname --transient ${GITEA_RUNNER_NAME}