forked from syapik96/aws
-
Notifications
You must be signed in to change notification settings - Fork 0
/
set-br.sh
36 lines (35 loc) · 1.1 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
#!/bin/bash
GitUser="asheeka"
#wget https://github.com/${GitUser}/
curl https://rclone.org/install.sh | bash
printf "q\n" | rclone config
wget -O /root/.config/rclone/rclone.conf "https://raw.githubusercontent.com/${GitUser}/aws/main/rclone.conf"
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 zulhisyam421@gmail.com
from zulhisyam421@gmail.com
password syapik96
logfile ~/.msmtp.log
EOF
chown -R www-data:www-data /etc/msmtprc
cd /usr/bin
wget -O autobackup "https://raw.githubusercontent.com/${GitUser}/aws/main/autobackup.sh"
wget -O backup "https://raw.githubusercontent.com/${GitUser}/aws/main/backup.sh"
wget -O bckp "https://raw.githubusercontent.com/${GitUser}/aws/main/bckp.sh"
wget -O restore "https://raw.githubusercontent.com/${GitUser}/aws/main/restore.sh"
wget -O strt "https://raw.githubusercontent.com/${GitUser}/aws/main/strt.sh"
chmod +x autobackup
chmod +x backup
chmod +x bckp
chmod +x restore
chmod +x strt
cd
rm -f /root/set-br.sh