Last active
August 10, 2022 10:04
-
-
Save del-xiong/d4422098d1d49db42726855a47c6e747 to your computer and use it in GitHub Desktop.
宝塔移除登录强制绑定 最新兼容7.8.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sed -i "s|show_force_bind();||g" /www/server/panel/BTPanel/static/js/index.js && \ | |
sed -i "s|if not public.is_bind():||g" /www/server/panel/BTPanel/__init__.py && \ | |
sed -i "s|return redirect('/bind',302)||g" /www/server/panel/BTPanel/__init__.py | |
# 执行完毕后重启 bt 1 |
降级7.7.0
wget http://download.bt.cn/install/update/LinuxPanel-7.7.0.zip && unzip LinuxPanel-7.7.0.zip && cd LinuxPanel-7.7.0/panel && bash update.sh && cd ../.. && rm -rf LinuxPanel-7.7.0.zip && rm -rf LinuxPanel-7.7.0
7.9.3
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
7.8.0之前的
7.8.0之后的(未完成)
执行完毕后重启 bt 1