diff --git a/entrypoint.sh b/entrypoint.sh index 976fe04..7b1c1bd 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -48,6 +48,9 @@ if [ "$HOME_USER" != "$(whoami)" ]; then # Execute the entrypoint.sh script as the user else + # Change the ownership of the .bashrc file + sudo chown ${HOME_USER} /home/${HOME_USER}/.bashrc + # List all environment variables sudo env | @@ -63,6 +66,9 @@ else echo "export $line" | sudo tee -a /home/${HOME_USER}/.bashrc done + # Source the .bashrc file to apply the changes immediately + sudo su -l ${HOME_USER} -c "source ~/.bashrc" + # Creating .vscode folder if it doesn't exist if [ ! -d "/home/${HOME_USER}/.vscode" ]; then sudo mkdir -p /home/${HOME_USER}/.vscode diff --git a/version.txt b/version.txt index 489200c..f1cb5ae 100755 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -3.0.9 \ No newline at end of file +3.0.10 \ No newline at end of file