From a983adf4adea906e7b0d37f5060a7fb049beeaa4 Mon Sep 17 00:00:00 2001 From: Alejandro Lembke Barrientos Date: Sat, 6 Apr 2024 22:51:29 +0000 Subject: [PATCH] Se quita la parte del usuario de Home user para solo ejecutar el primer comando de inicializacion. Se sube a version 2.0.22 --- entrypoint.sh | 16 ++++++++-------- version.txt | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 210b0ec..8210eb1 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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} diff --git a/version.txt b/version.txt index eb4d1bc..6f59f76 100755 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -2.0.21 \ No newline at end of file +2.0.22 \ No newline at end of file