From b73a4a352a7f588c147b2087e7037d1ef4b3a418 Mon Sep 17 00:00:00 2001 From: mol Date: Sat, 24 Feb 2024 12:45:19 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20entrypoint.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index e9eaee7..f45c616 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -44,8 +44,8 @@ if [ "${DOCKER_USER-}" ]; then # Unfortunately we cannot change $HOME as we cannot move any bind mounts # nor can we bind mount $HOME into a new home as that requires a privileged container. #sudo useradd -d /home/coder coder - sudo usermod --login "$DOCKER_USER" coder - sudo groupmod -n "$DOCKER_USER" coder + sudo usermod --login "$DOCKER_USER" "$(id -un 1000)" + sudo groupmod -n "$DOCKER_USER" "$(id -un 1000)" sudo sed -i "/coder/d" /etc/sudoers.d/nopasswd