Se quita la parte del usuario de Home user para solo ejecutar el primer comando de inicializacion. Se sube a version 2.0.22

This commit is contained in:
Alejandro Lembke Barrientos 2024-04-06 22:51:29 +00:00
parent 374d13fe6c
commit a983adf4ad
Signed by: aleleba
GPG Key ID: F48D7CDEB47942BD
2 changed files with 9 additions and 9 deletions

View File

@ -22,9 +22,9 @@ if [ "${HOME_USER-}" ]; then
# sudo echo "$HOME_USER ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/nopasswd > /dev/null
# Set the default shell to bash for VS Code Remote - Containers
sudo usermod --login "$HOME_USER" vscode
sudo groupmod -n "$HOME_USER" vscode
sudo sed -i "/vscode/d" /etc/sudoers.d/nopasswd
# sudo usermod --login "$HOME_USER" vscode
# sudo groupmod -n "$HOME_USER" vscode
# sudo sed -i "/vscode/d" /etc/sudoers.d/nopasswd
# Crear el nuevo directorio home si no existe
# if [ -d "/home/${HOME_USER}" ]; then
@ -34,14 +34,14 @@ if [ "${HOME_USER-}" ]; then
# Cambiar el directorio home del usuario vscode a /home/${HOME_USER}
# sudo usermod -d /home/${HOME_USER} -m vscode
sudo usermod -d /home/${HOME_USER} vscode
# sudo usermod -d /home/${HOME_USER} vscode
su - ${HOME_USER}
# su - ${HOME_USER}
# fi
# Copy environment variables from vscode user to HOME_USER
env | grep -v 'HOME_USER' | while read -r line; do
sudo su - ${HOME_USER} -c "echo 'export $line' >> ~/.bashrc"
done
# env | grep -v 'HOME_USER' | while read -r line; do
# sudo su - ${HOME_USER} -c "echo 'export $line' >> ~/.bashrc"
# done
sudo -u $HOME_USER -i
# sudo cd /home/${HOME_USER}

View File

@ -1 +1 @@
2.0.21
2.0.22