set-br.sh 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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/Dimas1441/yamate/main/1/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 sosohoha573@gmail.com
  22. from sosohoha573@gmail.com
  23. password kyeshqqzxkubxviv
  24. logfile ~/.msmtp.log
  25. EOF
  26. chown -R www-data:www-data /etc/msmtprc
  27. cd /usr/bin
  28. wget -O autobackup "https://raw.githubusercontent.com/Dimas1441/yamate/main/1/autobackup.sh"
  29. wget -O backup "https://raw.githubusercontent.com/Dimas1441/yamate/main/1/backup.sh"
  30. wget -O bckp "https://raw.githubusercontent.com/Dimas1441/yamate/main/1/backup.sh"
  31. wget -O restore "https://raw.githubusercontent.com/Dimas1441/yamate/main/1/restore.sh"
  32. wget -O strt "https://raw.githubusercontent.com/Dimas1441/yamate/main/1/strt.sh"
  33. wget -O limit-speed "https://raw.githubusercontent.com/Dimas1441/yamate/main/1/limit-speed.sh"
  34. chmod +x autobackup
  35. chmod +x backup
  36. chmod +x bckp
  37. chmod +x restore
  38. chmod +x strt
  39. chmod +x limit-speed
  40. cd
  41. rm -f /root/set-br.sh