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 sudo.
  • Loading branch information
vmcj committed Feb 3, 2024
1 parent 22ab830 commit c514814
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 c514814

Please sign in to comment.