Adding the environment variables of vscode to home user. Updating to version 2.0.13

This commit is contained in:
Alejandro Lembke Barrientos 2024-03-19 19:50:04 +00:00
parent 18fe10675c
commit dd283a2c5f
Signed by: aleleba
GPG Key ID: F48D7CDEB47942BD
2 changed files with 5 additions and 1 deletions

4
entrypoint.sh Normal file → Executable file
View File

@ -29,6 +29,10 @@ if [ "${HOME_USER-}" ]; then
# sudo sed -i "/vscode/d" /etc/sudoers.d/nopasswd
# sudo cd /home/${HOME_USER}
sudo chown -R ${HOME_USER}:${HOME_USER} /home/${HOME_USER}
# Copy environment variables from vscode user to HOME_USER
env | grep -v 'HOME_USER' | while read -r line; do
sudo su - ${HOME_USER} -c "echo 'export $line' >> ~/.bashrc"
done
fi
fi

View File

@ -1 +1 @@
2.0.12
2.0.13