mirror of
https://github.com/aleleba/aleleba-vscode-dockerfile-configuration.git
synced 2025-01-08 20:56:49 -06:00
Deleting vscode user when ${HOME_USER} exist. Updating to version 2.0.48
This commit is contained in:
parent
2a98fcce78
commit
32d405aa80
@ -50,11 +50,8 @@ 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 vscode
|
||||
fi
|
||||
fi
|
||||
|
||||
|
@ -1 +1 @@
|
||||
2.0.47
|
||||
2.0.48
|
Loading…
Reference in New Issue
Block a user