update.sh 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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.me/ip);
  14. echo "Start Update"
  15. # update
  16. cd /usr/bin
  17. wget -O add-host "https://raw.githubusercontent.com/Alamyazid/rev/main/add-host.sh"
  18. wget -O about "https://raw.githubusercontent.com/Alamyazid/rev/main/about.sh"
  19. wget -O usernew "https://raw.githubusercontent.com/Alamyazid/rev/main/usernew.sh"
  20. wget -O trial "https://raw.githubusercontent.com/Alamyazid/rev/main/trial.sh"
  21. wget -O hapus "https://raw.githubusercontent.com/Alamyazid/rev/main/hapus.sh"
  22. wget -O member "https://raw.githubusercontent.com/Alamyazid/rev/main/member.sh"
  23. wget -O delete "https://raw.githubusercontent.com/Alamyazid/rev/main/delete.sh"
  24. wget -O cek "https://raw.githubusercontent.com/Alamyazid/rev/main/cek.sh"
  25. wget -O restart "https://raw.githubusercontent.com/Alamyazid/rev/main/restart.sh"
  26. wget -O speedtest "https://raw.githubusercontent.com/Alamyazid/rev/main/speedtest_cli.py"
  27. wget -O info "https://raw.githubusercontent.com/Alamyazid/rev/main/info.sh"
  28. wget -O ram "https://raw.githubusercontent.com/Alamyazid/rev/main/ram.sh"
  29. wget -O renew "https://raw.githubusercontent.com/Alamyazid/rev/main/renew.sh"
  30. wget -O autokill "https://raw.githubusercontent.com/Alamyazid/rev/main/autokill.sh"
  31. wget -O ceklim "https://raw.githubusercontent.com/Alamyazid/rev/main/ceklim.sh"
  32. wget -O tendang "https://raw.githubusercontent.com/Alamyazid/rev/main/tendang.sh"
  33. wget -O clear-log "https://raw.githubusercontent.com/Alamyazid/rev/main/clear-log.sh"
  34. wget -O change-port "https://raw.githubusercontent.com/Alamyazid/rev/main/change.sh"
  35. wget -O port-ovpn "https://raw.githubusercontent.com/Alamyazid/rev/main/port-ovpn.sh"
  36. wget -O port-ssl "https://raw.githubusercontent.com/Alamyazid/rev/main/port-ssl.sh"
  37. wget -O port-wg "https://raw.githubusercontent.com/Alamyazid/rev/main/port-wg.sh"
  38. wget -O port-tr "https://raw.githubusercontent.com/Alamyazid/rev/main/port-tr.sh"
  39. wget -O port-sstp "https://raw.githubusercontent.com/Alamyazid/rev/main/port-sstp.sh"
  40. wget -O port-squid "https://raw.githubusercontent.com/Alamyazid/rev/main/port-squid.sh"
  41. wget -O port-ws "https://raw.githubusercontent.com/Alamyazid/rev/main/port-ws.sh"
  42. wget -O port-vless "https://raw.githubusercontent.com/Alamyazid/rev/main/port-vless.sh"
  43. wget -O wbmn "https://raw.githubusercontent.com/Alamyazid/rev/main/webmin.sh"
  44. wget -O xp "https://raw.githubusercontent.com/Alamyazid/rev/main/xp.sh"
  45. wget -O update "https://raw.githubusercontent.com/Alamyazid/rev/main/update.sh"
  46. wget -O strt "https://raw.githubusercontent.com/Alamyazid/rev/main/strt.sh"
  47. wget -O swap "https://raw.githubusercontent.com/Alamyazid/rev/main/swapkvm.sh"
  48. wget -O upgrade-mn "https://raw.githubusercontent.com/Alamyazid/rev/main/up-menu.sh"
  49. wget -O backup "https://raw.githubusercontent.com/Alamyazid/rev/main/backup.sh"
  50. wget -O autobackup "https://raw.githubusercontent.com/Alamyazid/rev/main/autobackup.sh"
  51. chmod +x add-host
  52. chmod +x usernew
  53. chmod +x trial
  54. chmod +x hapus
  55. chmod +x member
  56. chmod +x delete
  57. chmod +x cek
  58. chmod +x restart
  59. chmod +x speedtest
  60. chmod +x info
  61. chmod +x about
  62. chmod +x autokill
  63. chmod +x tendang
  64. chmod +x ceklim
  65. chmod +x ram
  66. chmod +x renew
  67. chmod +x clear-log
  68. chmod +x change-port
  69. chmod +x port-ovpn
  70. chmod +x port-ssl
  71. chmod +x port-wg
  72. chmod +x port-sstp
  73. chmod +x port-tr
  74. chmod +x port-squid
  75. chmod +x port-ws
  76. chmod +x port-vless
  77. chmod +x wbmn
  78. chmod +x xp
  79. chmod +x update
  80. chmod +x strt
  81. chmod +x swap
  82. chmod +x upgrade-mn
  83. chmod +x backup
  84. chmod +x autobackup
  85. wget -O /usr/bin/ssr https://raw.githubusercontent.com/Alamyazid/rev/main/ssrmu.sh && chmod +x /usr/bin/ssr
  86. wget -O /usr/bin/add-ssr https://raw.githubusercontent.com/Alamyazid/rev/main/add-ssr.sh && chmod +x /usr/bin/add-ssr
  87. wget -O /usr/bin/del-ssr https://raw.githubusercontent.com/Alamyazid/rev/main/del-ssr.sh && chmod +x /usr/bin/del-ssr
  88. wget -O /usr/bin/renew-ssr https://raw.githubusercontent.com/Alamyazid/rev/main/renew-ssr.sh && chmod +x /usr/bin/renew-ssr
  89. wget -O /usr/bin/add-sstp https://raw.githubusercontent.com/Alamyazid/rev/main/add-sstp.sh && chmod +x /usr/bin/add-sstp
  90. wget -O /usr/bin/del-sstp https://raw.githubusercontent.com/Alamyazid/rev/main/del-sstp.sh && chmod +x /usr/bin/del-sstp
  91. wget -O /usr/bin/cek-sstp https://raw.githubusercontent.com/Alamyazid/rev/main/cek-sstp.sh && chmod +x /usr/bin/cek-sstp
  92. wget -O /usr/bin/renew-sstp https://raw.githubusercontent.com/Alamyazid/rev/main/renew-sstp.sh && chmod +x /usr/bin/renew-sstp
  93. #wget -O /usr/bin/l2tp https://raw.githubusercontent.com/Alamyazid/rev/main/update/l2tp.sh && chmod +x /usr/bin/l2tp
  94. #wget -O /usr/bin/menu https://raw.githubusercontent.com/Alamyazid/rev/main/update/menu.sh && chmod +x /usr/bin/menu
  95. #wget -O /usr/bin/ssh https://raw.githubusercontent.com/Alamyazid/rev/main/update/ssh.sh && chmod +x /usr/bin/ssh
  96. #wget -O /usr/bin/ssssr https://raw.githubusercontent.com/Alamyazid/rev/main/update/ssssr.sh && chmod +x /usr/bin/ssssr
  97. #wget -O /usr/bin/sstpp https://raw.githubusercontent.com/Alamyazid/rev/main/update/sstpp.sh && chmod +x /usr/bin/sstpp
  98. #wget -O /usr/bin/trojaan https://raw.githubusercontent.com/Alamyazid/rev/main/update/trojaan.sh && chmod +x /usr/bin/trojaan
  99. #wget -O /usr/bin/v2raay https://raw.githubusercontent.com/Alamyazid/rev/main/update/v2raay.sh && chmod +x /usr/bin/v2raay
  100. #wget -O /usr/bin/vleess https://raw.githubusercontent.com/Alamyazid/rev/main/update/vleess.sh && chmod +x /usr/bin/vleess
  101. #wget -O /usr/bin/wgr https://raw.githubusercontent.com/Alamyazid/rev/main/update/wgr.sh && chmod +x /usr/bin/wgr
  102. wget -O add-wg "https://raw.githubusercontent.com/Alamyazid/rev/main/add-wg.sh"
  103. wget -O del-wg "https://raw.githubusercontent.com/Alamyazid/rev/main/del-wg.sh"
  104. wget -O cek-wg "https://raw.githubusercontent.com/Alamyazid/rev/main/cek-wg.sh"
  105. wget -O renew-wg "https://raw.githubusercontent.com/Alamyazid/rev/main/renew-wg.sh"
  106. chmod +x add-wg
  107. chmod +x del-wg
  108. chmod +x cek-wg
  109. chmod +x renew-wg
  110. wget -O add-ss "https://raw.githubusercontent.com/Alamyazid/rev/main/add-ss.sh"
  111. wget -O del-ss "https://raw.githubusercontent.com/Alamyazid/rev/main/del-ss.sh"
  112. wget -O cek-ss "https://raw.githubusercontent.com/Alamyazid/rev/main/cek-ss.sh"
  113. wget -O renew-ss "https://raw.githubusercontent.com/Alamyazid/rev/main/renew-ss.sh"
  114. chmod +x add-ss
  115. chmod +x del-ss
  116. chmod +x cek-ss
  117. chmod +x renew-ss
  118. wget -O add-ws "https://raw.githubusercontent.com/Alamyazid/rev/main/add-ws.sh"
  119. wget -O add-vless "https://raw.githubusercontent.com/Alamyazid/rev/main/add-vless.sh"
  120. wget -O add-tr "https://raw.githubusercontent.com/Alamyazid/rev/main/add-tr.sh"
  121. wget -O del-ws "https://raw.githubusercontent.com/Alamyazid/rev/main/del-ws.sh"
  122. wget -O del-vless "https://raw.githubusercontent.com/Alamyazid/rev/main/del-vless.sh"
  123. wget -O del-tr "https://raw.githubusercontent.com/Alamyazid/rev/main/del-tr.sh"
  124. wget -O cek-ws "https://raw.githubusercontent.com/Alamyazid/rev/main/cek-ws.sh"
  125. wget -O cek-vless "https://raw.githubusercontent.com/Alamyazid/rev/main/cek-vless.sh"
  126. wget -O cek-tr "https://raw.githubusercontent.com/Alamyazid/rev/main/cek-tr.sh"
  127. wget -O renew-ws "https://raw.githubusercontent.com/Alamyazid/rev/main/renew-ws.sh"
  128. wget -O renew-vless "https://raw.githubusercontent.com/Alamyazid/rev/main/renew-vless.sh"
  129. wget -O renew-tr "https://raw.githubusercontent.com/Alamyazid/rev/main/renew-tr.sh"
  130. wget -O certv2ray "https://raw.githubusercontent.com/Alamyazid/rev/main/cert.sh"
  131. chmod +x add-ws
  132. chmod +x add-vless
  133. chmod +x add-tr
  134. chmod +x del-ws
  135. chmod +x del-vless
  136. chmod +x del-tr
  137. chmod +x cek-ws
  138. chmod +x cek-vless
  139. chmod +x cek-tr
  140. chmod +x renew-ws
  141. chmod +x renew-vless
  142. chmod +x renew-tr
  143. chmod +x certv2ray
  144. wget -O /usr/bin/add-l2tp https://raw.githubusercontent.com/Alamyazid/rev/main/addl2tp.sh && chmod +x /usr/bin/add-l2tp
  145. wget -O /usr/bin/del-l2tp https://raw.githubusercontent.com/Alamyazid/rev/main/del-l2tp.sh && chmod +x /usr/bin/del-l2tp
  146. wget -O /usr/bin/add-pptp https://raw.githubusercontent.com/Alamyazid/rev/main/add-pptp.sh && chmod +x /usr/bin/add-pptp
  147. wget -O /usr/bin/del-pptp https://raw.githubusercontent.com/Alamyazid/rev/main/del-pptp.sh && chmod +x /usr/bin/del-pptp
  148. wget -O /usr/bin/renew-pptp https://raw.githubusercontent.com/Alamyazid/rev/main/renew-pptp.sh && chmod +x /usr/bin/renew-pptp
  149. wget -O /usr/bin/renew-l2tp https://raw.githubusercontent.com/Alamyazid/rev/main/renew-l2tp.sh && chmod +x /usr/bin/renew-l2tp
  150. echo "done"