diff --git a/entrypoint.sh b/entrypoint.sh index ba9c58a..2e481e0 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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 diff --git a/version.txt b/version.txt index 918e12b..341d64a 100755 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -2.0.50 \ No newline at end of file +2.0.51 \ No newline at end of file