Update index.py
This commit is contained in:
parent
e966df976f
commit
b97e0df6c5
|
|
@ -237,12 +237,12 @@ def restyOp(method):
|
|||
return data[1]
|
||||
|
||||
if current_os.startswith("freebsd"):
|
||||
mw.execShell('service '+getPluginName()+' '+method)
|
||||
mw.execShell('service httpd '+method)
|
||||
if data[1] == '':
|
||||
return 'ok'
|
||||
return data[1]
|
||||
|
||||
data = mw.execShell('systemctl ' + method + ' '+getPluginName())
|
||||
data = mw.execShell('systemctl ' + method + ' httpd')
|
||||
if data[1] == '':
|
||||
return 'ok'
|
||||
return data[1]
|
||||
|
|
|
|||
Loading…
Reference in New Issue