mirror of
https://github.com/aleleba/aleleba-vscode-dockerfile-configuration.git
synced 2025-06-19 12:28:15 -06:00
Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
68bdbd4c61 |
@ -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
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
1.1.5
|
1.1.6
|
Reference in New Issue
Block a user