Give an adopted .runner the runner user's group

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-11-27 13:44:30 +00:00
co-authored by Claude Opus 5.5
parent ee25ab4abb
commit 04a447813c
+1 -1
View File
@@ -88,7 +88,7 @@ as_user "$BIN" config set -c "$cfg" runner.labels "${labels[@]}"
if [ ! -f "$STATE/.runner" ]; then if [ ! -f "$STATE/.runner" ]; then
if [ -n "$from" ]; then if [ -n "$from" ]; then
[ -f "$from/.runner" ] || die "no .runner in $from" [ -f "$from/.runner" ] || die "no .runner in $from"
install -m 0600 -o "$RUNNER_USER" "$from/.runner" "$STATE/.runner" install -m 0600 -o "$RUNNER_USER" -g "$(id -gn "$RUNNER_USER")" "$from/.runner" "$STATE/.runner"
echo "Adopted $from/.runner" echo "Adopted $from/.runner"
else else
[ -n "${GITEA_RUNNER_REGISTRATION_TOKEN:-}" ] || [ -n "${GITEA_RUNNER_REGISTRATION_TOKEN:-}" ] ||