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