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):