mirror of
https://github.com/aleleba/aleleba-vscode-dockerfile-configuration.git
synced 2025-06-19 12:28:15 -06:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
a3b5fe1d6d
|
|||
99812ff71c
|
@ -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
|
||||
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}
|
||||
|
@ -1 +1 @@
|
||||
2.0.49
|
||||
2.0.51
|
Reference in New Issue
Block a user