diff --git a/entrypoint.sh b/entrypoint.sh old mode 100644 new mode 100755 index b7da30a..2f1ff8d --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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 diff --git a/version.txt b/version.txt index 3bad788..476ede4 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -2.0.12 \ No newline at end of file +2.0.13 \ No newline at end of file