mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 02:49:25 +08:00
Update index.py
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user