更新 entrypoint.sh
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
mol
2024-02-24 17:44:08 +00:00
parent f1b8e65f14
commit 10aed51160

View File

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