mirror of
https://github.com/aleleba/aleleba-vscode-dockerfile-configuration.git
synced 2025-01-09 05:06:46 -06:00
Trying to fix. updating to version 2.0.21
This commit is contained in:
parent
d4391139b2
commit
374d13fe6c
@ -16,7 +16,7 @@ eval "$(fixuid -q)"
|
|||||||
if [ "${HOME_USER-}" ]; then
|
if [ "${HOME_USER-}" ]; then
|
||||||
USER="$HOME_USER"
|
USER="$HOME_USER"
|
||||||
if [ "$HOME_USER" != "$(whoami)" ]; then
|
if [ "$HOME_USER" != "$(whoami)" ]; then
|
||||||
if ! id -u $HOME_USER > /dev/null 2>&1; then
|
# if ! id -u $HOME_USER > /dev/null 2>&1; then
|
||||||
# Create a user with the same UID as the host user.
|
# Create a user with the same UID as the host user.
|
||||||
# sudo adduser --disabled-password --gecos "" ${HOME_USER}
|
# sudo adduser --disabled-password --gecos "" ${HOME_USER}
|
||||||
# sudo echo "$HOME_USER ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/nopasswd > /dev/null
|
# sudo echo "$HOME_USER ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/nopasswd > /dev/null
|
||||||
@ -37,7 +37,7 @@ if [ "${HOME_USER-}" ]; then
|
|||||||
sudo usermod -d /home/${HOME_USER} vscode
|
sudo usermod -d /home/${HOME_USER} vscode
|
||||||
|
|
||||||
su - ${HOME_USER}
|
su - ${HOME_USER}
|
||||||
fi
|
# fi
|
||||||
# Copy environment variables from vscode user to HOME_USER
|
# Copy environment variables from vscode user to HOME_USER
|
||||||
env | grep -v 'HOME_USER' | while read -r line; do
|
env | grep -v 'HOME_USER' | while read -r line; do
|
||||||
sudo su - ${HOME_USER} -c "echo 'export $line' >> ~/.bashrc"
|
sudo su - ${HOME_USER} -c "echo 'export $line' >> ~/.bashrc"
|
||||||
|
@ -1 +1 @@
|
|||||||
2.0.20
|
2.0.21
|
Loading…
Reference in New Issue
Block a user