mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 01:29:26 +08:00
Update system_api.py
This commit is contained in:
@@ -72,10 +72,8 @@ class system_api:
|
||||
|
||||
# 重启面板
|
||||
def restartApi(self):
|
||||
|
||||
cmd = public.getRunDir() + '/scripts/init.d/mw restart &'
|
||||
print public.execShell(cmd)
|
||||
|
||||
cmd = public.getRunDir() + '/scripts/init.d/mw start'
|
||||
public.execShell(cmd)
|
||||
return public.returnJson(True, '面板已重启!')
|
||||
##### ----- end ----- ###
|
||||
|
||||
|
||||
Reference in New Issue
Block a user