setup.sh 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. #!/bin/bash
  2. end="\033[0m"
  3. slimred='\e[0;31m'
  4. greenf="\033[1;32m"
  5. if (( "$EUID" != 0 ));then
  6. echo -e "${slimred}Sorry, you need root access to install AnonYou.."
  7. echo -e "Please, use root account/'sudo' command or contact your system administrator${end}"
  8. exit 1
  9. else
  10. echo "Checking if you already installed AnonYou.."
  11. sleep 1
  12. which AnonYou > /dev/null 2>&1
  13. if [ "$?" -eq "0" ];then
  14. echo -e "${greenf}You have already installed AnonYou script"
  15. echo -e "Run : 'sudo AnonYou' in terminal to run the script(you can use -f arguement to force start)${greenf}"
  16. exit 0
  17. else
  18. echo "-----------------------------------------------------"
  19. echo -e "${slimred}Not found...${end}"
  20. echo "Installing AnonYou script directly into your system, please wait"
  21. sleep 1
  22. cp AnonYou /bin
  23. cp things.txt /bin
  24. clear
  25. echo -e "${greenf}Done! Now you can run the AnonYou script simply by typing one command"
  26. echo -e "'sudo AnonYou' (you can use -f arguement to force start)"
  27. echo -e "Have a nice day!${end}"
  28. exit 0
  29. fi
  30. fi