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:
@@ -275,18 +275,14 @@ def isSqlError(mysqlMsg):
|
||||
|
||||
|
||||
def appOp(method):
|
||||
file = initDreplace()
|
||||
initDreplace()
|
||||
|
||||
if not mw.isAppleSystem():
|
||||
data = mw.execShell('systemctl ' + method + ' ' + getPluginName())
|
||||
if data[1] == '':
|
||||
return 'ok'
|
||||
return 'fail'
|
||||
|
||||
data = mw.execShell(__SR + file + ' ' + method)
|
||||
if data[1] == '':
|
||||
return 'ok'
|
||||
return data[0]
|
||||
return "fail"
|
||||
|
||||
|
||||
def start():
|
||||
|
||||
Reference in New Issue
Block a user