menu-wg.sh 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #!/bin/bash
  2. clear
  3. echo -e "════════════════════════════════════════════════════════════
  4. = Script Vps For Debian N Ubuntu "
  5. echo -e ""
  6. echo -e " __ __ ___ ___ ___ ___ _____ "
  7. echo -e " \ \ / /| _ \/ __|| _ ) / _ \|_ _|"
  8. echo -e " \ V / | _/\__ \| _ \| (_) | | | "
  9. echo -e " \_/ |_| |___/|___/ \___/ |_| "
  10. echo -e ""
  11. echo -e "\e[94m .----------------------------------------------------. "
  12. echo -e "\e[94m | WIREGUARD MENU | "
  13. echo -e "\e[94m '----------------------------------------------------' "
  14. echo -e "\e[0m "
  15. echo -e "\e[1;31m* [1]\e[0m \e[1;32m: Create Wireguard Account\e[0m"
  16. echo -e "\e[1;31m* [2]\e[0m \e[1;32m: Delete Wireguard Account\e[0m"
  17. echo -e "\e[1;31m* [3]\e[0m \e[1;32m: Check User Login Wireguard\e[0m"
  18. echo -e "\e[1;31m* [4]\e[0m \e[1;32m: Extending Wireguard Account Active Life\e[0m"
  19. echo -e "\e[1;31m* [5]\e[0m \e[1;32m: Check Wireguard User Interface\e[0m"
  20. echo -e ""
  21. echo -e ""
  22. read -p " Select From Options [1-5 or x]: " menuwg
  23. echo -e ""
  24. case $menuwg in
  25. 1)
  26. add-wg
  27. ;;
  28. 2)
  29. del-wg
  30. ;;
  31. 3)
  32. cek-wg
  33. ;;
  34. 4)
  35. renew-wg
  36. ;;
  37. 5)
  38. wg show
  39. ;;
  40. x)
  41. menu
  42. ;;
  43. *)
  44. echo " Please enter an correct number!!"
  45. ;;
  46. esac