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 "$@"'