clone.sh 565 B

123456789101112131415161718192021222324252627282930
  1. #!/bin/bash
  2. menu(){
  3. clear
  4. echo "---------------------------------------"
  5. echo "---------- Tool copy webiste ----------"
  6. echo "---------------------------------------"
  7. echo "1. Copy webiste to webiste at host"
  8. echo "2. Copy website to another host"
  9. echo "3. Exit"
  10. }
  11. read_options(){
  12. local choice
  13. read -p "Enter choice [ 1-3 ]: " choice
  14. case $choice in
  15. 1)
  16. wget -q script.lehait.net/copy.sh && sh copy.sh
  17. ;;
  18. 2)
  19. wget -q script.lehait.net/backup.sh && sh backup.sh
  20. ;;
  21. 3 )
  22. exit && rm -f copy.sh backup.sh
  23. ;;
  24. esac
  25. }
  26. menu
  27. read_options