Compare commits

..

2 Commits

2 changed files with 11 additions and 2 deletions

View File

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

View File

@ -1 +1 @@
2.0.49
2.0.51