Trying to fix issue. Updating to version 2.0.6

This commit is contained in:
Alejandro Lembke Barrientos 2024-02-15 18:41:29 +00:00
parent 9bac2433a6
commit ac7a82f0ca
2 changed files with 8 additions and 5 deletions

View File

@ -13,16 +13,19 @@ fi
# 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)"
if [ "${DOCKER_USER-}" ]; then if [ "${HOME_USER-}" ]; then
USER="$DOCKER_USER" USER="$HOME_USER"
if [ "$DOCKER_USER" != "$(whoami)" ]; then if [ "$HOME_USER" != "$(whoami)" ]; then
echo "$DOCKER_USER ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/nopasswd > /dev/null adduser --disabled-password --gecos "" ${HOME_USER}
echo "$HOME_USER ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/nopasswd > /dev/null
su - $HOME_USER
# 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 usermod --login "$DOCKER_USER" vscode sudo usermod --login "$DOCKER_USER" vscode
sudo groupmod -n "$DOCKER_USER" vscode sudo groupmod -n "$DOCKER_USER" vscode
sudo sed -i "/vscode/d" /etc/sudoers.d/nopasswd sudo sed -i "/vscode/d" /etc/sudoers.d/nopasswd
sudo cd /home/${HOME_USER}
fi fi
fi fi

View File

@ -1 +1 @@
2.0.5 2.0.6