From dd283a2c5f0da89f933dd1cf66e16e23f9b28d5d Mon Sep 17 00:00:00 2001 From: Alejandro Lembke Barrientos Date: Tue, 19 Mar 2024 19:50:04 +0000 Subject: [PATCH] Adding the environment variables of vscode to home user. Updating to version 2.0.13 --- entrypoint.sh | 4 ++++ version.txt | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) mode change 100644 => 100755 entrypoint.sh 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