Advertisement
Guest User

rm tilled fix

a guest
Mar 27th, 2022
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. #!bin/bash#
  2. #this script is an update to automatically fix a crash caused by a missing home folder
  3.  
  4. #this part backs up important files
  5. su
  6. mkdir /etc/jbackup
  7. cp .profile /etc/jbackup/.profile_default
  8. cp .bashrc /etc/jbackup/.bashrc_default
  9.  
  10. #this part adds the fix to bash.bashrc
  11. echo'
  12. if -f /home/$USER/.profile
  13. then echo good
  14. else mkdir ~ && mkdir ~/Desktop && cp /etc/jbackup/.profile_default ~/.profile && cp /etc/jbackup/.bashrc_default ~/.bashrc' >> /etc/bash.bashrc
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement