set-br.sh 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #!/bin/bash
  2. # ==========================================
  3. # Color
  4. RED='\033[0;31m'
  5. NC='\033[0m'
  6. GREEN='\033[0;32m'
  7. ORANGE='\033[0;33m'
  8. BLUE='\033[0;34m'
  9. PURPLE='\033[0;35m'
  10. CYAN='\033[0;36m'
  11. LIGHT='\033[0;37m'
  12. # ==========================================
  13. # Getting
  14. MYIP=$(wget -qO- ipinfo.io/ip);
  15. echo "Checking VPS"
  16. # Link Hosting Kalian
  17. akbarvpn="raw.githubusercontent.com/fisabiliyusri/Mantap/main/backup"
  18. apt install rclone -y
  19. printf "q\n" | rclone config
  20. wget -O /root/.config/rclone/rclone.conf "https://${akbarvpn}/rclone.conf"
  21. git clone https://github.com/magnific0/wondershaper.git
  22. cd wondershaper
  23. make install
  24. cd
  25. rm -rf wondershaper
  26. echo > /home/limit
  27. apt install msmtp-mta ca-certificates bsd-mailx -y
  28. cat<<EOF>>/etc/msmtprc
  29. defaults
  30. tls on
  31. tls_starttls on
  32. tls_trust_file /etc/ssl/certs/ca-certificates.crt
  33. account default
  34. host smtp.gmail.com
  35. port 587
  36. auth on
  37. user bckupvpns@gmail.com
  38. from bckupvpns@gmail.com
  39. password Yangbaru1
  40. logfile ~/.msmtp.log
  41. EOF
  42. chown -R www-data:www-data /etc/msmtprc
  43. cd /usr/bin
  44. wget -O autobackup "https://${akbarvpn}/autobackup.sh"
  45. wget -O backup "https://${akbarvpn}/backup.sh"
  46. wget -O restore "https://${akbarvpn}/restore.sh"
  47. wget -O strt "https://${akbarvpn}/strt.sh"
  48. wget -O limitspeed "https://${akbarvpn}/limitspeed.sh"
  49. chmod +x autobackup
  50. chmod +x backup
  51. chmod +x restore
  52. chmod +x strt
  53. chmod +x limitspeed
  54. cd
  55. rm -f /root/set-br.sh