Skip to content

Instantly share code, notes, and snippets.

@linkimfly
Last active February 8, 2021 15:34
Show Gist options
  • Save linkimfly/a3f96f8f9361042cf1b6631abd4df575 to your computer and use it in GitHub Desktop.
Save linkimfly/a3f96f8f9361042cf1b6631abd4df575 to your computer and use it in GitHub Desktop.
bt panel tools
#!/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