image/run.sh: FIX broken GITEA_RUNNER_GID envar

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 03:42:44 +00:00
parent 313f378023
commit 76c1e005ad
No known key found for this signature in database
GPG Key ID: 685F01B0E0D4A2C7
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)
if [ "$GITEA_RUNNER_GID" != "$effective_gid" ]; then
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
sudo chown -R act:act /data