mirror of
https://github.com/flucont/btcloud.git
synced 2025-01-23 05:08:14 -05:00
54 lines
1.4 KiB
Markdown
54 lines
1.4 KiB
Markdown
# 宝塔云监控安装包修改记录
|
||
|
||
查询最新版本号:https://api.bt.cn/bt_monitor/latest_version
|
||
|
||
安装包下载链接:http://download.bt.cn/install/src/bt-monitor-版本号.zip
|
||
|
||
- 删除core/include/c_loader/PluginLoader.so,sqlite_server/PluginLoader.so,将btmonitor/PluginLoader.py复制到这个文件夹
|
||
|
||
- 批量解密源码:执行 php think decrypt all <源码根目录>
|
||
|
||
极少数文件解密失败是正常现象可无视
|
||
|
||
- 全局搜索替换 https://api.bt.cn => http://www.example.com(需排除/bt_monitor/latest_agent_version)
|
||
|
||
- 全局搜索替换 https://www.bt.cn/api/ => http://www.example.com/api/(需排除/panel/get_ip_info)
|
||
|
||
- core/include/public.py 在
|
||
|
||
```python
|
||
def GetConfigValue(key):
|
||
```
|
||
|
||
这一行下面加上
|
||
|
||
```python
|
||
if key == 'home': return 'http://www.example.com'
|
||
```
|
||
|
||
def write_request_log(reques = None): 这一行下面加上 return
|
||
|
||
- core/include/basic_monitor.py
|
||
|
||
在 def report_module_logs(self, force=False): 这一行下面加上 return
|
||
|
||
- modules/configModule/main.py
|
||
|
||
https://download.bt.cn => http://www.example.com
|
||
|
||
- update/update_btmonitor.sh 修改Install_Monitor方法内的download_Url变量
|
||
|
||
- init.sh https://download.bt.cn => http://www.example.com
|
||
|
||
- BT-MONITOR 在
|
||
|
||
```python
|
||
def CreateSSL():
|
||
```
|
||
|
||
这一行下面加上
|
||
|
||
```python
|
||
return CreateSSL_offline()
|
||
```
|