Compare commits

...

1 Commits
1.1.5 ... 1.1.6

Author SHA1 Message Date
68bdbd4c61 Trying to fix issue. Updating to version 1.1.6 2024-02-14 21:32:17 +00:00
2 changed files with 7 additions and 7 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
#if [[ -z "${HOME_USER}" ]]; then if [[ -z "${HOME_USER}" ]]; then
# HOME_USER="vscode" HOME_USER="vscode"
#fi fi
set -eu set -eu
@ -15,10 +15,10 @@ if [ "${HOME_USER-}" ]; then
echo "$HOME_USER ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/nopasswd > /dev/null echo "$HOME_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 "$HOME_USER" $HOME_USER
sudo groupmod -n "$HOME_USER" vscode sudo groupmod -n "$HOME_USER" $HOME_USER
sudo sed -i "/vscode/d" /etc/sudoers.d/nopasswd sudo sed -i "/$HOME_USER/d" /etc/sudoers.d/nopasswd
fi fi
fi fi

View File

@ -1 +1 @@
1.1.5 1.1.6