set-br.sh 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #!/bin/bash
  2. sudo apt-get install postfix
  3. curl https://rclone.org/install.sh | bash
  4. printf "q\n" | rclone config
  5. wget -O /root/.config/rclone/rclone.conf "https://github.com/ikelirawanrepo/AutoInstall/raw/main/rclone.conf"
  6. git clone https://github.com/magnific0/wondershaper.git
  7. cd wondershaper
  8. make install
  9. cd
  10. rm -rf wondershaper
  11. echo > /home/limit
  12. apt install msmtp-mta ca-certificates bsd-mailx -y
  13. cat<<EOF>>/etc/msmtprc
  14. defaults
  15. tls on
  16. tls_starttls on
  17. tls_trust_file /etc/ssl/certs/ca-certificates.crt
  18. account default
  19. host smtp.gmail.com
  20. port 587
  21. auth on
  22. user irwan@aidan.my
  23. from Backup VPS Successfull
  24. password rjtjbhzgwmlsbewf
  25. logfile ~/.msmtp.log
  26. EOF
  27. chown -R www-data:www-data /etc/msmtprc
  28. cd /usr/bin
  29. wget -O autobackup "https://github.com/ikelirawanrepo/AutoInstall/raw/main/autobackup.sh"
  30. wget -O backup "https://github.com/ikelirawanrepo/AutoInstall/raw/main/backup.sh"
  31. wget -O bckp "https://github.com/ikelirawanrepo/AutoInstall/raw/main/bckp.sh"
  32. wget -O restore "https://github.com/ikelirawanrepo/AutoInstall/raw/main/restore.sh"
  33. wget -O strt "https://github.com/ikelirawanrepo/AutoInstall/raw/main/strt.sh"
  34. wget -O limit-speed "https://github.com/ikelirawanrepo/AutoInstall/raw/main/limit-speed.sh"
  35. chmod +x autobackup
  36. chmod +x backup
  37. chmod +x bckp
  38. chmod +x restore
  39. chmod +x strt
  40. chmod +x limit-speed
  41. cd
  42. rm -f /root/set-br.sh