From 10aed51160212889e8879ba1d005a0e09fb9c261 Mon Sep 17 00:00:00 2001 From: mol Date: Sat, 24 Feb 2024 17:44:08 +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 332e27c..6c2a155 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -57,7 +57,7 @@ ssh-agent bash # Otherwise the current container UID may not exist in the passwd database. # eval "$(fixuid -q)" -su "$(id -un 1000)" + # Allow users to have scripts run on container startup to prepare workspace. # https://github.com/coder/code-server/issues/5177 @@ -65,4 +65,4 @@ if [ -d "${ENTRYPOINTD}" ]; then find "${ENTRYPOINTD}" -type f -executable -print -exec {} \; fi -exec dumb-init /usr/bin/code-server "$@" +su "$(id -un 1000)" -c 'exec dumb-init /usr/bin/code-server "$@"'