set-br.sh 1.6 KB

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