Trying to fix home variable. Updating to version 2.0.51

This commit is contained in:
Alejandro Lembke Barrientos 2024-04-12 03:18:12 +00:00
parent 99812ff71c
commit a3b5fe1d6d
Signed by: aleleba
GPG Key ID: F48D7CDEB47942BD
2 changed files with 7 additions and 1 deletions

View File

@ -50,6 +50,12 @@ 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

View File

@ -1 +1 @@
2.0.50
2.0.51