forked from 666wcy/ARPT-Bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
start.sh
38 lines (25 loc) · 969 Bytes
/
start.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
#!/bin/bash
touch /root/.aria2/aria2.session
chmod 0777 /root/.aria2/ -R
nohup filebrowser -r / -p 9184 >> /dev/null 2>&1 &
#nohup ./FolderMagic -aria "http://127.0.0.1:6800/jsonrpc" -auth root:$Aria2_secret -bind :9184 -root / -wd /webdav >> /dev/null 2>&1 &
mkdir /.config/
mkdir /.config/rclone
touch /.config/rclone/rclone.conf
wget git.io/tracker.sh
chmod 0777 /tracker.sh
/bin/bash tracker.sh "/root/.aria2/aria2.conf"
rm -rf /bot
git clone https://github.com/666wcy/ARPT-Bot.git
mkdir /bot/
mv /ARPT-Bot/bot/* /bot/
rm /etc/nginx/nginx.conf
cp /ARPT-Bot/root/nginx.conf /etc/nginx/
rm -rf /ARPT-Bot
#python3 /bot/nginx.py
nginx -c /etc/nginx/nginx.conf
nginx -s reload
nohup aria2c --conf-path=/root/.aria2/aria2.conf --rpc-listen-port=8080 --rpc-secret=$Aria2_secret &
nohup rclone rcd --rc-addr=127.0.0.1:5572 --rc-user=root --rc-pass=$Aria2_secret --rc-allow-origin="https://elonh.github.io" &
#nohup python3 /bot/web.py &
python3 /bot/main.py