Skip to content

Commit

Permalink
Run {group,user}mod as root
Browse files Browse the repository at this point in the history
This broke when the container user changed from root -> domjudge and not all actions as root were prefixed with root.
  • Loading branch information
vmcj authored Feb 1, 2024
1 parent 0f87362 commit bfeb5d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker-contributor/scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ function file_or_env {
}

echo "[..] Changing user/group ID"
groupmod -g "${GID}" domjudge
usermod -u "${UID}" domjudge
sudo groupmod -g "${GID}" domjudge
sudo usermod -u "${UID}" domjudge
echo "[ok] User ID set to ${UID} and group ID set to ${GID}"; echo

echo "[..] Setting timezone"
Expand Down

0 comments on commit bfeb5d5

Please sign in to comment.