Last active
February 8, 2021 15:34
-
-
Save linkimfly/a3f96f8f9361042cf1b6631abd4df575 to your computer and use it in GitHub Desktop.
bt panel tools
This file contains hidden or 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
#!/bin/sh | |
# 去除宝塔面板 添加网站时域名格式校验 | |
sed -i "s/if not re.match(reg, self.siteName)/#if not re.match(reg, self.siteName)/g" /www/server/panel/class/panelSite.py | |
# 修改面板site.js | |
sed -i "s/{type:'checkbox',class:'',width:20},/{type:'checkbox',class:'',width:20},{fid:'id',title:'ID'},/g" /www/server/panel/BTPanel/static/js/site.js | |
# 清除面板缓存 | |
bt 9 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment