From a3b5fe1d6dccaa1c714fc1c4547cfefabd5446c8 Mon Sep 17 00:00:00 2001 From: Alejandro Lembke Barrientos Date: Fri, 12 Apr 2024 03:18:12 +0000 Subject: [PATCH] Trying to fix home variable. Updating to version 2.0.51 --- entrypoint.sh | 6 ++++++ version.txt | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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