mirror of
https://github.com/aleleba/aleleba-vscode-dockerfile-configuration.git
synced 2025-06-18 20:08:13 -06:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
13e642be86
|
|||
ba267c2494
|
@ -40,6 +40,11 @@ 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
|
||||||
|
|
||||||
|
# Check if the .bashrc file exists, if not, create it
|
||||||
|
if [ ! -f /home/${HOME_USER}/.bashrc ]; then
|
||||||
|
sudo touch /home/${HOME_USER}/.bashrc
|
||||||
|
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
|
||||||
|
|
||||||
@ -57,6 +62,15 @@ if ! id -u $HOME_USER > /dev/null 2>&1; then
|
|||||||
do
|
do
|
||||||
echo "export $line" | sudo tee -a /home/${HOME_USER}/.bashrc
|
echo "export $line" | sudo tee -a /home/${HOME_USER}/.bashrc
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Creating .vscode folder if it doesn't exist
|
||||||
|
if [ ! -d "/home/${HOME_USER}/.vscode" ]; then
|
||||||
|
sudo mkdir -p /home/${HOME_USER}/.vscode
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Changing the property of the directory /home/${HOME_USER}/.vscode
|
||||||
|
sudo chown -R ${HOME_USER}: /home/${HOME_USER}/.vscode
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Then execute entrypoint.sh
|
# Then execute entrypoint.sh
|
||||||
|
@ -1 +1 @@
|
|||||||
3.0.6
|
3.0.8
|
Reference in New Issue
Block a user