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.

53 lines
1.4 KiB

1 year ago
  1. # 宝塔云监控安装包修改记录
  2. 查询最新版本号:https://api.bt.cn/bt_monitor/latest_version
  3. 安装包下载链接:http://download.bt.cn/install/src/bt-monitor-版本号.zip
  4. - 删除core/include/c_loader/PluginLoader.so,sqlite_server/PluginLoader.so,将btmonitor/PluginLoader.py复制到这个文件夹
  5. - 批量解密源码:执行 php think decrypt all <源码根目录>
  6. 极少数文件解密失败是正常现象可无视
  7. - 全局搜索替换 https://api.bt.cn => http://www.example.com(需排除/bt_monitor/latest_agent_version)
  8. - 全局搜索替换 https://www.bt.cn/api/ => http://www.example.com/api/(需排除/panel/get_ip_info)
  9. - core/include/public.py 在
  10. ```python
  11. def GetConfigValue(key):
  12. ```
  13. 这一行下面加上
  14. ```python
  15. if key == 'home': return 'http://www.example.com'
  16. ```
  17. def write_request_log(reques = None): 这一行下面加上 return
  18. - core/include/basic_monitor.py
  19. 在 def report_module_logs(self, force=False): 这一行下面加上 return
  20. - modules/configModule/main.py
  21. https://download.bt.cn => http://www.example.com
  22. - update/update_btmonitor.sh 修改Install_Monitor方法内的download_Url变量
  23. - init.sh https://download.bt.cn => http://www.example.com
  24. - BT-MONITOR 在
  25. ```python
  26. def CreateSSL():
  27. ```
  28. 这一行下面加上
  29. ```python
  30. return CreateSSL_offline()
  31. ```