image/run.sh fails to the container:act user's effective GID to the GITEA_RUNNER_GID envar's value due due to a 'usermod -o -u' typo. It should be: usermod -o -g "$GITEA_RUNNER_GID" act Signed-off-by: William Blew <william@kulian.org>
This commit is contained in:
parent
313f378023
commit
04c232ff95
|
|
@ -42,7 +42,7 @@ if [ -n "${GITEA_RUNNER_GID:-}" ]; then
|
||||||
effective_gid=$(id -g act)
|
effective_gid=$(id -g act)
|
||||||
if [ "$GITEA_RUNNER_GID" != "$effective_gid" ]; then
|
if [ "$GITEA_RUNNER_GID" != "$effective_gid" ]; then
|
||||||
log INFO "Changing GID of user [act] from $effective_gid to $GITEA_RUNNER_GID..."
|
log INFO "Changing GID of user [act] from $effective_gid to $GITEA_RUNNER_GID..."
|
||||||
sudo usermod -o -u "$GITEA_RUNNER_GID" act
|
sudo usermod -o -g "$GITEA_RUNNER_GID" act
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
sudo chown -R act:act /data
|
sudo chown -R act:act /data
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue