This commit is contained in:
Mr Chen
2018-12-12 18:45:33 +08:00
parent bc4e5f6a87
commit 8d170d87e4
4 changed files with 32 additions and 7 deletions
+2
View File
@@ -51,6 +51,8 @@ class config:
def initInitD(self):
script = public.getRunDir() + '/scripts/init.d/mw.tpl'
script_bin = public.getRunDir() + '/scripts/init.d/mw'
if os.path.exists(script_bin):
return
content = public.readFile(script)
content = content.replace("{$SERVER_PATH}", public.getRunDir())