mirror of
https://github.com/aleleba/aleleba-vscode-dockerfile-configuration.git
synced 2025-06-19 04:18:11 -06:00
Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
cd8b5c19e1
|
|||
a6e4296f25
|
|||
08cf40624d
|
|||
a3b5fe1d6d
|
|||
99812ff71c
|
|||
d8a8162ffd
|
|||
32d405aa80
|
@ -55,6 +55,17 @@ if [ "${HOME_USER-}" ]; then
|
|||||||
|
|
||||||
# Source the .bashrc file to apply the changes immediately
|
# Source the .bashrc file to apply the changes immediately
|
||||||
sudo su -l ${HOME_USER} -c "source ~/.bashrc"
|
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 pkill -u vscode
|
||||||
|
sleep 2 # wait for processes to terminate
|
||||||
|
sudo -u root bash -c 'userdel -r vscode'
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
# Switch to the user specified by $HOME_USER and start an interactive shell session.
|
||||||
|
sudo su -l ${HOME_USER}
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
2.0.47
|
2.0.54
|
Reference in New Issue
Block a user