You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
# 宝塔云监控安装包修改记录
查询最新版本号:https://api.bt.cn/bt_monitor/latest_version
安装包下载链接:http://download.bt.cn/install/src/bt-monitor-版本号.zip
- 删除core/include/c_loader/PluginLoader.so,将btmonitor/PluginLoader.py复制到这个文件夹
- 批量解密源码:执行 php think decrypt all <源码根目录>
极少数文件解密失败是正常现象可无视
- 全局搜索替换 https://api.bt.cn => http://www.example.com
- 全局搜索替换 https://www.bt.cn/api/ => http://www.example.com/api/(需排除/panel/get_ip_info)
- core/public.py 在
```python def GetConfigValue(key): ```
这一行下面加上
```python if key == 'home': return 'http://www.example.com' ```
def write_request_log(reques = None): 这一行下面加上 return
- core/basic_monitor.py
在 def report_module_logs(self): 这一行下面加上 return
- modules/configModule/main.py
http://download.bt.cn => http://www.example.com
- update/update_btmonitor.sh 修改Install_Monitor方法内的download_Url变量
- init.sh http://download.bt.cn => http://www.example.com
- 根目录BT-MONITOR 取消第一个CreateSSL方法定义的注释,删除第二个CreateSSL方法定义
|