mirror of
https://github.com/aleleba/aleleba-vscode-dockerfile-configuration.git
synced 2025-01-09 05:06:46 -06:00
Updating to version 3.0.9
This commit is contained in:
parent
13e642be86
commit
3f6a9f6626
@ -39,14 +39,14 @@ USER="$HOME_USER"
|
|||||||
if ! id -u $HOME_USER > /dev/null 2>&1; then
|
if ! id -u $HOME_USER > /dev/null 2>&1; then
|
||||||
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
|
||||||
|
fi
|
||||||
|
|
||||||
# Check if the .bashrc file exists, if not, create it
|
# Then execute entrypoint.sh
|
||||||
if [ ! -f /home/${HOME_USER}/.bashrc ]; then
|
if [ "$HOME_USER" != "$(whoami)" ]; then
|
||||||
sudo touch /home/${HOME_USER}/.bashrc
|
exec sudo -u $HOME_USER bash -c "source /etc/environment; /usr/bin/entrypoint.sh"
|
||||||
fi
|
|
||||||
|
|
||||||
# Change the ownership of the .bashrc file
|
# Execute the entrypoint.sh script as the user
|
||||||
sudo chown ${HOME_USER} /home/${HOME_USER}/.bashrc
|
else
|
||||||
|
|
||||||
# List all environment variables
|
# List all environment variables
|
||||||
sudo env |
|
sudo env |
|
||||||
@ -70,12 +70,6 @@ if ! id -u $HOME_USER > /dev/null 2>&1; then
|
|||||||
|
|
||||||
# Changing the property of the directory /home/${HOME_USER}/.vscode
|
# Changing the property of the directory /home/${HOME_USER}/.vscode
|
||||||
sudo chown -R ${HOME_USER}: /home/${HOME_USER}/.vscode
|
sudo chown -R ${HOME_USER}: /home/${HOME_USER}/.vscode
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Then execute entrypoint.sh
|
|
||||||
if [ "$HOME_USER" != "$(whoami)" ]; then
|
|
||||||
exec sudo -u $HOME_USER bash -c "source /etc/environment; /usr/bin/entrypoint.sh"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Find .sh files in /usr/bin/custom-scripts and execute them in order
|
# Find .sh files in /usr/bin/custom-scripts and execute them in order
|
||||||
|
@ -1 +1 @@
|
|||||||
3.0.8
|
3.0.9
|
Loading…
Reference in New Issue
Block a user