Fix: `usermod: group '...' does not exist` with custom GITEA_RUNNER_GID (#10)

This commit is contained in:
William Blew 2023-05-20 05:41:07 -07:00 committed by GitHub
parent 4c9806d71c
commit c5334e1f65
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)
if [ "$GITEA_RUNNER_GID" != "$effective_gid" ]; then
log INFO "Changing GID of user [act] from $effective_gid to $GITEA_RUNNER_GID..."
sudo usermod -o -g "$GITEA_RUNNER_GID" act
sudo groupmod -o -g "$GITEA_RUNNER_GID" act
fi
fi
sudo chown -R act:act /data