Fix #5: GITEA_RUNNER_GID envar is ignored (#6)

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:
William Blew 2023-05-14 02:13:51 -07:00 committed by GitHub
parent 313f378023
commit 04c232ff95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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