Update index.py

This commit is contained in:
dami 2026-04-11 20:44:54 +08:00
parent e966df976f
commit b97e0df6c5
1 changed files with 2 additions and 2 deletions

View File

@ -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]