Trying to fix issue of .bashrc not exist. Updating to version 3.0.7

This commit is contained in:
Alejandro Lembke Barrientos 2024-04-15 04:33:36 +00:00
parent 67cc921484
commit ba267c2494
Signed by: aleleba
GPG Key ID: F48D7CDEB47942BD
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -1 +1 @@
3.0.6 3.0.7