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:
@@ -142,7 +142,7 @@ def mqttOp(method):
|
|||||||
return data[1]
|
return data[1]
|
||||||
|
|
||||||
if current_os.startswith("freebsd"):
|
if current_os.startswith("freebsd"):
|
||||||
data = mw.execShell('systemctl ' + getPluginName() + ' ' + method)
|
data = mw.execShell('service ' + getPluginName() + ' ' + method)
|
||||||
if data[1] == '':
|
if data[1] == '':
|
||||||
return 'ok'
|
return 'ok'
|
||||||
return data[1]
|
return data[1]
|
||||||
|
|||||||
Reference in New Issue
Block a user