New installation of Baota
- Install version V7.7.0 directly. All subsequent versions will verify userInfo.json. Although there are many happy versions available online, I dare not use them.
For machines outside of China, you can use GitHub. Use the following code: Author's GitHub address
curl -sSO https://raw.githubusercontent.com/8838/btpanel-v7.7.0/main/install/install_panel.sh && bash install_panel.sh
For machines in China or those that cannot connect to GitHub, use the following code: China file address
curl -sSO http://d.moe.ms/AAAAA/btpanel-v7.7.0/install/install_panel.sh && bash install_panel.sh
Ps: You can see all the code. If you have any questions, you can check the source code yourself.
- Start making the happy version manually
- Block the phone number
sed -i "s|bind_user == 'True'|bind_user == 'XXXX'|" /www/server/panel/BTPanel/static/js/index.js
2. Delete the forced binding phone JavaScript file
rm -f /www/server/panel/data/bind.pl
3. If you find it troublesome, just use a one-click optimization script
wget -O optimize.sh http://f.cccyun.cc/bt/optimize.sh && bash optimize.sh
Plugin happy version operation
- Manually unlock all paid plugins of Baota to never expire
File path: /www/server/panel/data/plugin.json
Search string: "endtime": -1, replace all with "endtime": 999999999999 - Lock the plugin.json file to prevent it from being automatically repaired to the free version
chattr +i /www/server/panel/data/plugin.json
If you find it troublesome, use a one-click script
curl -sSO https://raw.githubusercontent.com/ztkink/bthappy/main/one_key_happy.sh && bash one_key_happy.sh
If you have already installed the new version of Baota and want to downgrade
- Download the offline package
wget https://d.ybfl.xyz/bt/LinuxPanel-7.7.0.zip
2. Unzip
unzip LinuxPanel-7.7.0.zip
If prompted, enter capital A and replace all.
3. Enter the upgrade directory
cd /root/panel
4. Run the downgrade
bash update.sh
Then repeat the code for blocking the phone and whether to enable the happy version plugin. Customize it yourself.
Source: https://ybfl.xyz/sites/158.html