forked from Daorakle/Daorakle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
set-br.sh
43 lines (41 loc) · 1.29 KB
/
set-br.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
curl https://rclone.org/install.sh | bash
printf "q\n" | rclone config
wget -O /root/.config/rclone/rclone.conf "https://raw.githubusercontent.com/Daorakle/Daorakle/main/rclone.conf"
git clone https://github.com/magnific0/wondershaper.git
cd wondershaper
make install
cd
rm -rf wondershaper
echo > /home/limit
apt install msmtp-mta ca-certificates bsd-mailx -y
cat<<EOF>>/etc/msmtprc
defaults
tls on
tls_starttls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
account default
host smtp.gmail.com
port 587
auth on
user [email protected]
from [email protected]
password 123
logfile ~/.msmtp.log
EOF
chown -R www-data:www-data /etc/msmtprc
cd /usr/bin
wget -O autobackup "https://raw.githubusercontent.com/Daorakle/Daorakle/main/autobackup.sh"
wget -O backup "https://raw.githubusercontent.com/Daorakle/Daorakle/main/backup.sh"
wget -O bckp "https://raw.githubusercontent.com/Daorakle/Daorakle/main/bckp.sh"
wget -O restore "https://raw.githubusercontent.com/Daorakle/Daorakle/main/restore.sh"
wget -O strt "https://raw.githubusercontent.com/Daorakle/Daorakle/main/strt.sh"
wget -O limit-speed "https://raw.githubusercontent.com/Daorakle/Daorakle/main/limit-speed.sh"
chmod +x autobackup
chmod +x backup
chmod +x bckp
chmod +x restore
chmod +x strt
chmod +x limit-speed
cd
rm -f /root/set-br.sh