mirror of
https://github.com/aleleba/aleleba-vscode-dockerfile-configuration.git
synced 2025-01-09 13:16:48 -06:00
Adding the environment variables of vscode to home user. Updating to version 2.0.13
This commit is contained in:
parent
18fe10675c
commit
dd283a2c5f
4
entrypoint.sh
Normal file → Executable file
4
entrypoint.sh
Normal file → Executable file
@ -29,6 +29,10 @@ if [ "${HOME_USER-}" ]; then
|
|||||||
# sudo sed -i "/vscode/d" /etc/sudoers.d/nopasswd
|
# sudo sed -i "/vscode/d" /etc/sudoers.d/nopasswd
|
||||||
# sudo cd /home/${HOME_USER}
|
# sudo cd /home/${HOME_USER}
|
||||||
sudo chown -R ${HOME_USER}:${HOME_USER} /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
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
2.0.12
|
2.0.13
|
Loading…
Reference in New Issue
Block a user