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

This commit is contained in:
mol
2024-02-25 08:24:44 +00:00
parent 5c3f084b1e
commit 5adaa23df7

View File

@ -17,9 +17,9 @@ if [ "${DOCKER_USER-}" ]; then
# Unfortunately we cannot change $HOME as we cannot move any bind mounts # Unfortunately we cannot change $HOME as we cannot move any bind mounts
# nor can we bind mount $HOME into a new home as that requires a privileged container. # nor can we bind mount $HOME into a new home as that requires a privileged container.
sudo chown -R "$DOCKER_USER":999 /home/coder
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 chown -R "$DOCKER_USER":999 /home/coder
#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