From 8d27ffbe9196b886b1dbc9aa1cd144cdd50d13db Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Sun, 5 May 2024 18:03:40 +0800 Subject: [PATCH] update --- plugins/mongodb/index.html | 1 + plugins/mongodb/index.py | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/plugins/mongodb/index.html b/plugins/mongodb/index.html index 4738d5c99..954e0bb6a 100755 --- a/plugins/mongodb/index.html +++ b/plugins/mongodb/index.html @@ -57,6 +57,7 @@

自启动

配置修改

配置文件

+

配置[KEY]

数据列表

文档状态

负载状态

diff --git a/plugins/mongodb/index.py b/plugins/mongodb/index.py index 7b9a4b6e2..870884041 100755 --- a/plugins/mongodb/index.py +++ b/plugins/mongodb/index.py @@ -42,6 +42,9 @@ def getConf(): path = getServerDir() + "/mongodb.conf" return path +def getConfKey(): + key = getServerDir() + "/mongodb.key" + return key def getConfTpl(): path = getPluginDir() + "/config/mongodb.conf" @@ -1451,6 +1454,8 @@ if __name__ == "__main__": print(runReplInfo()) elif func == 'conf': print(getConf()) + elif func == 'config_key': + print(getConfKey()) elif func == 'get_config': print(getConfig()) elif func == 'set_config':