Trying to fix missing environment variables for root user. Updating to version 2.0.58

This commit is contained in:
Alejandro Lembke Barrientos 2024-04-12 10:28:23 +00:00
parent 680e3810b6
commit d596af8a2f
Signed by: aleleba
GPG Key ID: F48D7CDEB47942BD
2 changed files with 4 additions and 2 deletions

View File

@ -4,7 +4,9 @@ set -eu
# Check if we are root
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" 1>&2
exec sudo /usr/bin/entrypoint.sh
sudo bash -c "echo HOME_USER=$HOME_USER >> /etc/environment"
sudo bash -c "echo VSCODE_TUNNEL_NAME=$VSCODE_TUNNEL_NAME >> /etc/environment"
exec sudo bash -c "source /etc/environment; /usr/bin/entrypoint.sh"
fi
if [[ -z "${HOME_USER-}" ]]; then

View File

@ -1 +1 @@
2.0.57
2.0.58