Skip to content

Commit

Permalink
更换代理地址
Browse files Browse the repository at this point in the history
  • Loading branch information
elunez committed Apr 11, 2023
1 parent 725caa2 commit d609745
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 21 deletions.
6 changes: 3 additions & 3 deletions bt_7.7_happy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@
12. 修复0点CPU高占用BUG完成(本库优化)
#### 脚本安装
```bash
wget -O bt_happy.sh https://proxy.zyun.vip/https://raw.githubusercontent.com/elunez/other_script/master/bt_7.7_happy/bt_happy.sh && chmod +x bt_happy.sh && ./bt_happy.sh
wget -O bt_happy.sh https://slink.ltd/https://raw.githubusercontent.com/elunez/other_script/master/bt_7.7_happy/bt_happy.sh && chmod +x bt_happy.sh && ./bt_happy.sh
```

### 安装宝塔 7.7

```bash
curl -sSO https://proxy.zyun.vip/https://raw.githubusercontent.com/elunez/other_script/master/btpanel-v7.7.0/install/install_panel.sh && bash install_panel.sh
curl -sSO https://slink.ltd/https://raw.githubusercontent.com/elunez/other_script/master/btpanel-v7.7.0/install/install_panel.sh && bash install_panel.sh
```

### 宝塔降级到 7.7(适用centos)

```bash
wget https://proxy.zyun.vip/https://raw.githubusercontent.com/elunez/other_script/master/btpanel-v7.7.0/install/src/LinuxPanel-7.7.0.zip
wget https://slink.ltd/https://raw.githubusercontent.com/elunez/other_script/master/btpanel-v7.7.0/install/src/LinuxPanel-7.7.0.zip
unzip LinuxPanel-*
cd panel
bash update.sh
Expand Down
20 changes: 10 additions & 10 deletions bt_7.7_happy/bt_happy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,46 +72,46 @@ if [ -f /www/server/panel/BTPanel/templates/default/soft.html ];then
chattr -i /www/server/panel/BTPanel/templates/default/soft.html
rm -rf /www/server/panel/BTPanel/templates/default/soft.html
cd /www/server/panel/BTPanel/templates/default
wget https://proxy.zyun.vip/https://raw.githubusercontent.com/elunez/other_script/master/bt_7.7_happy/soft.html
wget https://slink.ltd/https://raw.githubusercontent.com/elunez/other_script/master/bt_7.7_happy/soft.html
chattr +i /www/server/panel/BTPanel/templates/default/soft.html
else
cd /www/server/panel/BTPanel/templates/default
wget https://proxy.zyun.vip/https://raw.githubusercontent.com/elunez/other_script/master/bt_7.7_happy/soft.html
wget https://slink.ltd/https://raw.githubusercontent.com/elunez/other_script/master/bt_7.7_happy/soft.html
fi
echo "已去除商城界面广告."

if [ -f /www/server/panel/data/plugin.json ];then
chattr -i /www/server/panel/data/plugin.json
rm /www/server/panel/data/plugin.json
cd /www/server/panel/data
wget https://proxy.zyun.vip/https://raw.githubusercontent.com/elunez/other_script/master/bt_7.7_happy/plugin.json
wget https://slink.ltd/https://raw.githubusercontent.com/elunez/other_script/master/bt_7.7_happy/plugin.json
chattr +i /www/server/panel/data/plugin.json
else
cd /www/server/panel/data
wget https://proxy.zyun.vip/https://raw.githubusercontent.com/elunez/other_script/master/bt_7.7_happy/plugin.json
wget https://slink.ltd/https://raw.githubusercontent.com/elunez/other_script/master/bt_7.7_happy/plugin.json
chattr +i /www/server/panel/data/plugin.json
fi
echo "已去除插件安装限制."

if [ -f /www/server/panel/BTPanel/templates/default/index.html ];then
rm /www/server/panel/BTPanel/templates/default/index.html
cd /www/server/panel/BTPanel/templates/default
wget https://proxy.zyun.vip/https://raw.githubusercontent.com/elunez/other_script/master/bt_7.7_happy/index.html
wget https://slink.ltd/https://raw.githubusercontent.com/elunez/other_script/master/bt_7.7_happy/index.html
else
cd /www/server/panel/BTPanel/templates/default
wget https://proxy.zyun.vip/https://raw.githubusercontent.com/elunez/other_script/master/bt_7.7_happy/index.html
wget https://slink.ltd/https://raw.githubusercontent.com/elunez/other_script/master/bt_7.7_happy/index.html
fi
echo -e "已去除首页升级红点."

if [ -f /www/server/panel/task.py ];then
chattr -i /www/server/panel/task.py
rm /www/server/panel/task.py
cd /www/server/panel
wget https://proxy.zyun.vip/https://raw.githubusercontent.com/elunez/other_script/master/bt_7.7_happy/task.py
wget https://slink.ltd/https://raw.githubusercontent.com/elunez/other_script/master/bt_7.7_happy/task.py
chattr +i /www/server/panel/task.py
else
cd /www/server/panel
wget https://proxy.zyun.vip/https://raw.githubusercontent.com/elunez/other_script/master/bt_7.7_happy/task.py
wget https://slink.ltd/https://raw.githubusercontent.com/elunez/other_script/master/bt_7.7_happy/task.py
chattr +i /www/server/panel/task.py
fi
echo -e "修复0点CPU高占用BUG完成."
Expand All @@ -120,11 +120,11 @@ if [ -f /www/server/panel/data/repair.json ];then
chattr -i /www/server/panel/data/repair.json
rm /www/server/panel/data/repair.json
cd /www/server/panel/data
wget https://proxy.zyun.vip/https://raw.githubusercontent.com/elunez/other_script/master/bt_7.7_happy/repair.json
wget https://slink.ltd/https://raw.githubusercontent.com/elunez/other_script/master/bt_7.7_happy/repair.json
chattr +i /www/server/panel/data/repair.json
else
cd /www/server/panel/data
wget https://proxy.zyun.vip/https://raw.githubusercontent.com/elunez/other_script/master/bt_7.7_happy/repair.json
wget https://slink.ltd/https://raw.githubusercontent.com/elunez/other_script/master/bt_7.7_happy/repair.json
chattr +i /www/server/panel/data/repair.json
fi
echo -e "文件防止修改完成."
Expand Down
2 changes: 1 addition & 1 deletion btpanel-v7.7.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ btpanel-v7.7.0-backup 官方原版v7.7.0版本面板备份
**Centos/Ubuntu/Debian安装命令 独立运行环境(py3.7)**

```Bash
curl -sSO https://proxy.zyun.vip/https://raw.githubusercontent.com/elunez/other_script/master/btpanel-v7.7.0/install/install_panel.sh && bash install_panel.sh
curl -sSO https://slink.ltd/https://raw.githubusercontent.com/elunez/other_script/master/btpanel-v7.7.0/install/install_panel.sh && bash install_panel.sh
```

原库地址:https://github.com/zhucaidan/btpanel-v7.7.0
14 changes: 7 additions & 7 deletions btpanel-v7.7.0/install/install_panel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ Install_RPM_Pack(){
#yumBaseUrl=$(cat /etc/yum.repos.d/CentOS-Base.repo|grep baseurl=http|cut -d '=' -f 2|cut -d '$' -f 1|head -n 1)
#[ "${yumBaseUrl}" ] && checkYumRepo=$(curl --connect-timeout 5 --head -s -o /dev/null -w %{http_code} ${yumBaseUrl})
#if [ "${checkYumRepo}" != "200" ] && [ "${SYS_TYPE}" ];then
# curl -Ss --connect-timeout 3 -m 60 https://proxy.zyun.vip/https://raw.githubusercontent.com/elunez/other_script/master/btpanel-v7.7.0/install/yumRepo_select.sh|bash
# curl -Ss --connect-timeout 3 -m 60 https://slink.ltd/https://raw.githubusercontent.com/elunez/other_script/master/btpanel-v7.7.0/install/yumRepo_select.sh|bash
#fi

#尝试同步时间(从bt.cn)
Expand Down Expand Up @@ -355,7 +355,7 @@ Get_Versions(){
fi
}
Install_Python_Lib(){
curl -Ss --connect-timeout 3 -m 60 https://proxy.zyun.vip/https://raw.githubusercontent.com/elunez/other_script/master/btpanel-v7.7.0/install/pip_select.sh|bash
curl -Ss --connect-timeout 3 -m 60 https://slink.ltd/https://raw.githubusercontent.com/elunez/other_script/master/btpanel-v7.7.0/install/pip_select.sh|bash
pyenv_path="/www/server/panel"
if [ -f $pyenv_path/pyenv/bin/python ];then
is_ssl=$($python_bin -c "import ssl" 2>&1|grep cannot)
Expand Down Expand Up @@ -488,9 +488,9 @@ Install_Bt(){
sleep 1
fi

wget -O /etc/init.d/bt https://proxy.zyun.vip/https://raw.githubusercontent.com/elunez/other_script/master/btpanel-v7.7.0/install/src/bt6.init -T 10
wget -O /www/server/panel/install/public.sh https://proxy.zyun.vip/https://raw.githubusercontent.com/elunez/other_script/master/btpanel-v7.7.0/install/public.sh -T 10
wget -O panel.zip https://proxy.zyun.vip/https://raw.githubusercontent.com/elunez/other_script/master/btpanel-v7.7.0/install/src/panel6.zip -T 10
wget -O /etc/init.d/bt https://slink.ltd/https://raw.githubusercontent.com/elunez/other_script/master/btpanel-v7.7.0/install/src/bt6.init -T 10
wget -O /www/server/panel/install/public.sh https://slink.ltd/https://raw.githubusercontent.com/elunez/other_script/master/btpanel-v7.7.0/install/public.sh -T 10
wget -O panel.zip https://slink.ltd/https://raw.githubusercontent.com/elunez/other_script/master/btpanel-v7.7.0/install/src/panel6.zip -T 10

if [ -f "${setup_path}/server/panel/data/default.db" ];then
if [ -d "/${setup_path}/server/panel/old_data" ];then
Expand Down Expand Up @@ -540,8 +540,8 @@ Install_Bt(){
chmod -R +x ${setup_path}/server/panel/script
ln -sf /etc/init.d/bt /usr/bin/bt
echo "${panelPort}" > ${setup_path}/server/panel/data/port.pl
wget -O /etc/init.d/bt https://proxy.zyun.vip/https://raw.githubusercontent.com/elunez/other_script/master/btpanel-v7.7.0/install/src/bt7.init -T 10
wget -O /www/server/panel/init.sh https://proxy.zyun.vip/https://raw.githubusercontent.com/elunez/other_script/master/btpanel-v7.7.0/install/src/bt7.init -T 10
wget -O /etc/init.d/bt https://slink.ltd/https://raw.githubusercontent.com/elunez/other_script/master/btpanel-v7.7.0/install/src/bt7.init -T 10
wget -O /www/server/panel/init.sh https://slink.ltd/https://raw.githubusercontent.com/elunez/other_script/master/btpanel-v7.7.0/install/src/bt7.init -T 10
wget -O /www/server/panel/data/softList.conf ${download_Url}/install/conf/softList.conf
}
Set_Bt_Panel(){
Expand Down

0 comments on commit d609745

Please sign in to comment.