From f1b8e65f146a16909f289e92b5b0351c733e3f00 Mon Sep 17 00:00:00 2001 From: mol Date: Sat, 24 Feb 2024 17:21:10 +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 5b7f551..332e27c 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -19,7 +19,7 @@ if [ "${DOCKER_USER-}" ]; then sudo usermod --login "$DOCKER_USER" "$USER_HOME" sudo groupmod -n "$DOCKER_USER" "$USER_HOME" - sudo printf "user: $DOCKER_USER\ngroup: $DOCKER_USER\n" > /etc/fixuid/config.yml + #sudo printf "user: $DOCKER_USER\ngroup: $DOCKER_USER\n" > /etc/fixuid/config.yml sudo chown -R "$DOCKER_USER":999 /home/coder @@ -55,7 +55,7 @@ ssh-agent bash # We do this first to ensure sudo works below when renaming the user. # Otherwise the current container UID may not exist in the passwd database. -eval "$(fixuid -q)" +# eval "$(fixuid -q)" su "$(id -un 1000)"