Deleting vscode user when ${HOME_USER} exist. Updating to version 2.0.48

This commit is contained in:
Alejandro Lembke Barrientos 2024-04-11 22:30:56 +00:00
parent 2a98fcce78
commit 32d405aa80
Signed by: aleleba
GPG Key ID: F48D7CDEB47942BD
2 changed files with 3 additions and 6 deletions

View File

@ -50,11 +50,8 @@ if [ "${HOME_USER-}" ]; then
# Switch to the user specified by $HOME_USER and start an interactive shell session. # Switch to the user specified by $HOME_USER and start an interactive shell session.
sudo su -l ${HOME_USER} sudo su -l ${HOME_USER}
# Copy the HOME variable from vscode user to HOME_USER # Delete the vscode user
sudo su -l ${HOME_USER} -c "echo \"export HOME=/home/${HOME_USER}\" >> ~/.bashrc" sudo userdel vscode
# Source the .bashrc file to apply the changes immediately
sudo su -l ${HOME_USER} -c "source ~/.bashrc"
fi fi
fi fi

View File

@ -1 +1 @@
2.0.47 2.0.48