Update index.py

This commit is contained in:
dami 2025-07-21 19:41:02 +08:00
parent 93679924f4
commit ffe5cd21e5
1 changed files with 10 additions and 0 deletions

View File

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