From ffe5cd21e582397bdf73d8da5397fcb31b0bc3ef Mon Sep 17 00:00:00 2001 From: dami Date: Mon, 21 Jul 2025 19:41:02 +0800 Subject: [PATCH] Update index.py --- plugins/manticoresearch/index.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/plugins/manticoresearch/index.py b/plugins/manticoresearch/index.py index f864bb791..6fecc2139 100755 --- a/plugins/manticoresearch/index.py +++ b/plugins/manticoresearch/index.py @@ -127,6 +127,16 @@ def mkdirAll(): def initDreplace(): + dirs_list = [ + "/var/log/manticore", + "/var/run/manticore", + "/var/lib/manticore" + ] + + for d in dirs_list: + if not os.path.exists(d): + mw.execShell('mkdir -p ' + d) + # config replace conf_bin = getConf() if not os.path.exists(conf_bin):