forked from aaPanel/BaoTa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpatchv6.sh
29 lines (22 loc) · 940 Bytes
/
patchv6.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
#!/bin/sh
clear
echo; echo 'Installing BT patch 6.+'; echo
RELEASE_TAG=7.6.205
FILE1=https://cdn.jsdelivr.net/gh/ONode/BTB@$RELEASE_TAG/v6/BTPanel/static/js/index.js
FILE2=https://cdn.jsdelivr.net/gh/ONode/BTB@$RELEASE_TAG/v6/BTPanel/__init__.py
FILE3=https://cdn.jsdelivr.net/gh/ONode/BTB@$RELEASE_TAG/v6/BTPanel/templates/default/bind.html
FILE4=https://cdn.jsdelivr.net/gh/ONode/BTB@$RELEASE_TAG/v6/BTPanel/templates/default/layout.html
BASE_PANEL=/www/server/panel
echo 'Searching for the working version'
if [ ! -d $BASE_PANEL ];then
echo "BT is not install, exit."
exit
fi
wget -q $FILE1 -O $BASE_PANEL/BTPanel/static/js/index.js
wget -q $FILE2 -O $BASE_PANEL/BTPanel/__init__.py
wget -q $FILE3 -O $BASE_PANEL/BTPanel/templates/default/bind.html
wget -q $FILE4 -O $BASE_PANEL/BTPanel/templates/default/layout.html
cd $BASE_PANEL
sh init.sh reload
echo '... done with the new patch 🫕'
echo 'Installation has completed 🌮'