update-1.2.sh 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #!/bin/bash
  2. if [ "${EUID}" -ne 0 ]; then
  3. echo "You need to run this script as root"
  4. exit 1
  5. fi
  6. if [ "$(systemd-detect-virt)" == "openvz" ]; then
  7. echo "OpenVZ is not supported"
  8. exit 1
  9. fi
  10. red='\e[1;31m'
  11. green='\e[0;32m'
  12. NC='\e[0m'
  13. MYIP=$(wget -qO- ifconfig.co);
  14. clear
  15. versi=$(cat /home/ver)
  16. if [[ $versi == 1.2 ]]; then
  17. echo "You Have The Latest Version"
  18. exit 0
  19. fi
  20. echo "Start Update"
  21. cd /usr/bin
  22. wget -O menu "https://prem.vpnstores.net/menu.sh"
  23. wget -O usernew "https://prem.vpnstores.net/usernew.sh"
  24. wget -O trial "https://prem.vpnstores.net/trial.sh"
  25. wget -O change-port "https://prem.vpnstores.net/change.sh"
  26. wget -O port-ovpn "https://prem.vpnstores.net/port-ovpn.sh"
  27. wget -O port-ssl "https://prem.vpnstores.net/port-ssl.sh"
  28. wget -O port-wg "https://prem.vpnstores.net/port-wg.sh"
  29. wget -O port-tr "https://prem.vpnstores.net/port-tr.sh"
  30. wget -O port-sstp "https://prem.vpnstores.net/port-sstp.sh"
  31. wget -O port-squid "https://prem.vpnstores.net/port-squid.sh"
  32. wget -O port-ws "https://prem.vpnstores.net/port-ws.sh"
  33. wget -O port-vless "https://prem.vpnstores.net/port-vless.sh"
  34. wget -O wbmn "https://prem.vpnstores.net/webmin.sh"
  35. wget -O xp "https://prem.vpnstores.net/xp.sh"
  36. wget -O limit-speed "https://prem.vpnstores.net/limit-speed.sh"
  37. wget -O add-sstp "https://prem.vpnstores.net/add-sstp.sh"
  38. wget -O add-ws "https://prem.vpnstores.net/add-ws.sh"
  39. wget -O add-vless "https://prem.vpnstores.net/add-vless.sh"
  40. wget -O add-tr "https://prem.vpnstores.net/add-tr.sh"
  41. chmod +x change-port
  42. chmod +x port-ovpn
  43. chmod +x port-ssl
  44. chmod +x port-wg
  45. chmod +x port-sstp
  46. chmod +x port-tr
  47. chmod +x port-squid
  48. chmod +x port-ws
  49. chmod +x port-vless
  50. chmod +x wbmn
  51. chmod +x xp
  52. chmod +x limit-speed
  53. echo "0 5 * * * root clear-log && reboot" > /etc/crontab
  54. echo "0 0 * * * root xp" > /etc/crontab
  55. cd
  56. echo "1.2" > /home/ver
  57. clear
  58. echo " Fix minor Bugs"
  59. echo " Now You Can Change Port Of Some Services"
  60. echo " Reboot 5 Sec"
  61. sleep 5
  62. rm -f update.sh
  63. reboot