mirror of
https://github.com/aleleba/aleleba-vscode-dockerfile-configuration.git
synced 2025-01-09 05:06:46 -06:00
Update entrypoint.sh and version.txt Updating to version 3.0.16
This commit is contained in:
parent
89fd905384
commit
9f101b45cc
@ -41,27 +41,27 @@ if ! id -u $HOME_USER > /dev/null 2>&1; then
|
|||||||
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
|
||||||
|
|
||||||
# Check if the .bashrc file exists, if not, create it
|
# Check if the .bashrc file exists, if not, create it
|
||||||
if [ ! -f /home/${HOME_USER}/.bashrc ]; then
|
#if [ ! -f /home/${HOME_USER}/.bashrc ]; then
|
||||||
sudo touch /home/${HOME_USER}/.bashrc
|
#sudo touch /home/${HOME_USER}/.bashrc
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
# Change the ownership of the .bashrc file
|
# Change the ownership of the .bashrc file
|
||||||
sudo chown ${HOME_USER} /home/${HOME_USER}/.bashrc
|
#sudo chown ${HOME_USER} /home/${HOME_USER}/.bashrc
|
||||||
|
|
||||||
# List all environment variables
|
# List all environment variables
|
||||||
sudo env |
|
#sudo env |
|
||||||
|
|
||||||
# Filter variables that start with USER_ENV_
|
# Filter variables that start with USER_ENV_
|
||||||
grep -E '^USER_ENV_' |
|
#grep -E '^USER_ENV_' |
|
||||||
|
|
||||||
# Remove the USER_ENV_ prefix
|
# Remove the USER_ENV_ prefix
|
||||||
sed 's/^USER_ENV_//' |
|
#sed 's/^USER_ENV_//' |
|
||||||
|
|
||||||
# Append the result to /home/${HOME_USER}/.bashrc
|
# Append the result to /home/${HOME_USER}/.bashrc
|
||||||
while IFS= read -r line
|
#while IFS= read -r line
|
||||||
do
|
#do
|
||||||
echo "export $line" | sudo -u ${HOME_USER} tee -a /home/${HOME_USER}/.bashrc
|
#echo "export $line" | sudo -u ${HOME_USER} tee -a /home/${HOME_USER}/.bashrc
|
||||||
done
|
#done
|
||||||
|
|
||||||
# Creating .vscode folder if it doesn't exist
|
# Creating .vscode folder if it doesn't exist
|
||||||
if [ ! -d "/home/${HOME_USER}/.vscode" ]; then
|
if [ ! -d "/home/${HOME_USER}/.vscode" ]; then
|
||||||
|
@ -1 +1 @@
|
|||||||
3.0.15
|
3.0.16
|
Loading…
Reference in New Issue
Block a user