Update index.py

This commit is contained in:
Mr Chen
2024-10-15 16:05:27 +08:00
parent e5ba11ae79
commit 5033692886
+7 -7
View File
@@ -135,13 +135,13 @@ def initDreplace():
file_bin = initD_path + '/' + getPluginName()
# config replace
dst_conf = getConf()
dst_conf_init = getServerDir() + '/init.pl'
if not os.path.exists(dst_conf_init):
content = mw.readFile(getConfTpl())
content = contentReplace(content)
mw.writeFile(dst_conf, content)
mw.writeFile(dst_conf_init, 'ok')
# dst_conf = getConf()
# dst_conf_init = getServerDir() + '/init.pl'
# if not os.path.exists(dst_conf_init):
# content = mw.readFile(getConfTpl())
# content = contentReplace(content)
# mw.writeFile(dst_conf, content)
# mw.writeFile(dst_conf_init, 'ok')
# systemd
systemDir = mw.systemdCfgDir()