Advertisement
v1ral_ITS

Ubuntu 'systemback' PPA For Easy ISO Creation Of Your Current System As is [user data optional;]

Jul 13th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.17 KB | None | 0 0
  1. #!/bin/bash
  2. # Console colors ##############
  3. W='\033[0m'   # white (normal)#
  4. R='\033[31m'  # red           #
  5. G='\033[32m'  # green         #
  6. O='\033[33m'  # orange        #
  7. B='\033[34m'  # blue          #
  8. BLINK='\e[5m' # blink         #
  9. P='\033[35m'  # purple        #
  10. C='\033[36m'  # cyan          #
  11. GR='\033[37m' # gray          #
  12. ###############################
  13. if [[ $1 == $* ]]; then
  14. echo -e $GR"\nThis Will Add A New Repository On Ubuntu Systems Called Systemback\n"
  15. fi
  16. echo -e $B"It Also Requires A Package Called 'unionfs-fuse'\n"
  17. echo -e $R"Do You Have This Already Installed?"
  18. echo -e $G"If You Do Not Know We Can Check For You Now\n"
  19. echo -e "$P 1) Check For Me \n$R 2) Dont Check, I Know I Have It"
  20. read n
  21. case $n in
  22.     1) echo "Checking File System"; sleep 2; echo -e "`apt list`"; echo -e "`sudo apt-get install unionfs-fuse`" ;;
  23.     2) echo "Brilliant! Moving On..."; sleep 1 ;;
  24.     esac
  25. echo -e $R"It Must Be ALl Caps To Make Sure You Want TO: "
  26. echo -e $O"\nTo Continue Please Type Exactly 'YES' \n"
  27. read ANSWER
  28. if [[ $ANSWER == YES ]]; then
  29. sudo add-apt-repository ppa:nemh/systemback
  30. sudo apt-get update
  31. sudo apt-get install systemback
  32. else
  33. echo -e $P"Thanks Anyways\n"
  34. sleep 1
  35. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement