From dd96833c0915c28a9fd23c2832711cc439fd8311 Mon Sep 17 00:00:00 2001 From: midoks Date: Thu, 17 Aug 2023 00:10:38 +0800 Subject: [PATCH] Update index.py --- plugins/mongodb/index.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/mongodb/index.py b/plugins/mongodb/index.py index 16bc1c0f5..832311137 100755 --- a/plugins/mongodb/index.py +++ b/plugins/mongodb/index.py @@ -85,6 +85,14 @@ def initDreplace(): os.mkdir(initD_path) file_bin = initD_path + '/' + getPluginName() + logs_dir = getServerDir() + '/logs' + if not os.path.exists(logs_dir): + os.mkdir(logs_dir) + + data_dir = getServerDir() + '/data' + if not os.path.exists(data_dir): + os.mkdir(data_dir) + # initd replace content = mw.readFile(file_tpl) content = content.replace('{$SERVER_PATH}', service_path)