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

This commit is contained in:
mol
2024-02-24 17:21:10 +00:00
parent e18a8a57f8
commit f1b8e65f14

View File

@ -19,7 +19,7 @@ if [ "${DOCKER_USER-}" ]; then
sudo usermod --login "$DOCKER_USER" "$USER_HOME" sudo usermod --login "$DOCKER_USER" "$USER_HOME"
sudo groupmod -n "$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 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. # 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. # Otherwise the current container UID may not exist in the passwd database.
eval "$(fixuid -q)" # eval "$(fixuid -q)"
su "$(id -un 1000)" su "$(id -un 1000)"