mirror of
https://github.com/aleleba/aleleba-vscode-dockerfile-configuration.git
synced 2025-01-09 05:06:46 -06:00
Trying to fix missing environment variables for root user. Updating to version 2.0.58
This commit is contained in:
parent
680e3810b6
commit
d596af8a2f
@ -4,7 +4,9 @@ set -eu
|
|||||||
# Check if we are root
|
# Check if we are root
|
||||||
if [ "$(id -u)" != "0" ]; then
|
if [ "$(id -u)" != "0" ]; then
|
||||||
echo "This script must be run as root" 1>&2
|
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
|
fi
|
||||||
|
|
||||||
if [[ -z "${HOME_USER-}" ]]; then
|
if [[ -z "${HOME_USER-}" ]]; then
|
||||||
|
@ -1 +1 @@
|
|||||||
2.0.57
|
2.0.58
|
Loading…
Reference in New Issue
Block a user