Update index.py

This commit is contained in:
Mr Chen
2024-09-14 11:57:28 +08:00
parent e68a21ccb7
commit aacc87c190
+4 -5
View File
@@ -42,11 +42,6 @@ def getConf():
return path
def getConfTpl():
path = getPluginDir() + "/config/redis.conf"
return path
def getInitDTpl():
path = getPluginDir() + "/init.d/" + getPluginName() + ".tpl"
return path
@@ -156,6 +151,10 @@ def initDreplace():
if not os.path.exists(run_log_file):
mw.writeFile(run_log_file,'')
hook_file = getConf()
if not os.path.exists(hook_file):
mw.writeFile(hook_file,'')
# initd replace
if not os.path.exists(file_bin):
content = mw.readFile(file_tpl)