mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update index.py
This commit is contained in:
@@ -151,7 +151,6 @@ def initDreplace():
|
||||
content = content.replace('{$SERVER_PATH}', service_path)
|
||||
mw.writeFile(file_bin, content)
|
||||
mw.execShell('chmod +x ' + file_bin)
|
||||
openPort()
|
||||
|
||||
|
||||
# systemd
|
||||
@@ -164,7 +163,8 @@ def initDreplace():
|
||||
se_content = se_content.replace('{$SERVER_PATH}', service_path)
|
||||
mw.writeFile(systemService, se_content)
|
||||
mw.execShell('systemctl daemon-reload')
|
||||
|
||||
time.sleep(1)
|
||||
openPort()
|
||||
return file_bin
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user