mirror of
https://github.com/aleleba/aleleba-vscode-dockerfile-configuration.git
synced 2025-01-08 20:56:49 -06:00
Move .bashrc and .profile files to user's home directory, update version to 3.0.29
This commit is contained in:
parent
8b71265807
commit
8dea73ec95
@ -73,6 +73,14 @@ else
|
|||||||
sudo chown -R ${HOME_USER} /home/${HOME_USER}
|
sudo chown -R ${HOME_USER} /home/${HOME_USER}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Move the .bashrc file to the user's home directory
|
||||||
|
sudo mv /usr/bin/.bashrc /home/${HOME_USER}/.bashrc
|
||||||
|
sudo chown ${HOME_USER} /home/${HOME_USER}/.bashrc
|
||||||
|
|
||||||
|
# Move the .profile file to the user's home directory
|
||||||
|
sudo mv /usr/bin/.profile /home/${HOME_USER}/.profile
|
||||||
|
sudo chown ${HOME_USER} /home/${HOME_USER}/.profile
|
||||||
|
|
||||||
# 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
|
||||||
for script in $(find /usr/bin/custom-scripts -name "*.sh" | sort); do
|
for script in $(find /usr/bin/custom-scripts -name "*.sh" | sort); do
|
||||||
chmod +x $script
|
chmod +x $script
|
||||||
@ -83,14 +91,6 @@ for script in $(find /usr/bin/custom-scripts -name "*.sh" | sort); do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Move the .bashrc file to the user's home directory
|
|
||||||
sudo mv /usr/bin/.bashrc /home/${HOME_USER}/.bashrc
|
|
||||||
sudo chown ${HOME_USER} /home/${HOME_USER}/.bashrc
|
|
||||||
|
|
||||||
# Move the .profile file to the user's home directory
|
|
||||||
sudo mv /usr/bin/.profile /home/${HOME_USER}/.profile
|
|
||||||
sudo chown ${HOME_USER} /home/${HOME_USER}/.profile
|
|
||||||
|
|
||||||
#Creating extensions folder
|
#Creating extensions folder
|
||||||
if [ ! -d "/home/${HOME_USER}/.config/Code" ]; then
|
if [ ! -d "/home/${HOME_USER}/.config/Code" ]; then
|
||||||
sudo mkdir -p /home/${HOME_USER}/.config/Code
|
sudo mkdir -p /home/${HOME_USER}/.config/Code
|
||||||
|
@ -1 +1 @@
|
|||||||
3.0.28
|
3.0.29
|
Loading…
Reference in New Issue
Block a user