From a039665e0f5d4fb1d426611c81622028d054b4f4 Mon Sep 17 00:00:00 2001 From: MCJ Vasseur <14887731+vmcj@users.noreply.github.com> Date: Thu, 1 Feb 2024 21:36:14 +0100 Subject: [PATCH] Run {group,user}mod as root This broke when the container user changed from root -> domjudge and not all actions as root were prefixed with sudo. --- docker-contributor/scripts/start.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-contributor/scripts/start.sh b/docker-contributor/scripts/start.sh index bf583e15..06e27f5b 100644 --- a/docker-contributor/scripts/start.sh +++ b/docker-contributor/scripts/start.sh @@ -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"