mirror of
https://github.com/aleleba/aleleba-vscode-dockerfile-configuration.git
synced 2025-01-09 13:16:48 -06:00
Trying to fix user error. Updating to version 2.0.1
This commit is contained in:
parent
b5cbdca7ef
commit
47d6a61a28
@ -13,14 +13,14 @@ 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 [ "${HOME_USER-}" ]; then
|
if [ "${DOCKER_USER-}" ]; then
|
||||||
USER="$HOME_USER"
|
USER="$DOCKER_USER"
|
||||||
if [ "$HOME_USER" != "$(whoami)" ]; then
|
if [ "$DOCKER_USER" != "$(whoami)" ]; then
|
||||||
echo "$HOME_USER ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/nopasswd > /dev/null
|
echo "$DOCKER_USER ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/nopasswd > /dev/null
|
||||||
# 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 "$HOME_USER" vscode
|
sudo usermod --login "$DOCKER_USER" vscode
|
||||||
sudo groupmod -n "$HOME_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
|
||||||
fi
|
fi
|
||||||
|
@ -1 +1 @@
|
|||||||
2.0.0
|
2.0.1
|
Loading…
Reference in New Issue
Block a user