From 1e5523c1f7db35707a7f1fe37409cb9ddede979f Mon Sep 17 00:00:00 2001 From: Alejandro Lembke Barrientos Date: Wed, 10 Apr 2024 07:24:41 +0000 Subject: [PATCH] Fixing errors of user. Updating to version 2.0.39 --- entrypoint.sh | 5 ++++- version.txt | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 6d6a003..4a5c334 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -33,6 +33,9 @@ if [ "${HOME_USER-}" ]; then sudo su - ${HOME_USER} -c "echo 'export $line' >> ~/.bashrc" done + # Copy the HOME variable from vscode user to HOME_USER + sudo su - ${HOME_USER} -c "echo 'export HOME=\"/home/\${HOME_USER}\"' >> ~/.bashrc" + # Copy the PATH variable from vscode user to HOME_USER #PATH_LINE=$(grep "^PATH=" /home/vscode/.bashrc) #sudo su - ${HOME_USER} -c "echo '${PATH_LINE}' >> ~/.bashrc" @@ -41,7 +44,7 @@ if [ "${HOME_USER-}" ]; then sudo su - ${HOME_USER} -c "cat /home/vscode/.bashrc >> ~/.bashrc" # Changing the property of the directory /home/${HOME_USER} - sudo chown -R ${HOME_USER}: /home/${HOME_USER}/ + # sudo chown -R ${HOME_USER}: /home/${HOME_USER}/ # Changing the HOME_USER in the .bashrc file sudo su - ${HOME_USER} -c 'sed -i "s|/home/vscode|/home/${HOME_USER}|g" ~/.bashrc' diff --git a/version.txt b/version.txt index f9548bf..cf28835 100755 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -2.0.38 \ No newline at end of file +2.0.39 \ No newline at end of file