Give an adopted .runner the runner user's group
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
+1
-1
@@ -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:-}" ] ||
|
||||||
|
|||||||
Reference in New Issue
Block a user