mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 04:59:25 +08:00
Update index.py
This commit is contained in:
@@ -233,9 +233,6 @@ def pgOp(method):
|
||||
return 'ok'
|
||||
return data[1]
|
||||
|
||||
if method == 'stop' or method == 'restart':
|
||||
mw.execShell(file + ' ' + 'stop')
|
||||
|
||||
data = mw.execShell('systemctl ' + method+ '' + getPluginName())
|
||||
if data[1] == '':
|
||||
return 'ok'
|
||||
|
||||
Reference in New Issue
Block a user