This commit is contained in:
Mr Chen
2024-05-05 18:03:40 +08:00
parent afa32231ad
commit 8d27ffbe91
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -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':