Update index.py

This commit is contained in:
dami 2026-04-11 21:34:11 +08:00
parent 2e5ab39fee
commit 12fd04b296
1 changed files with 2 additions and 2 deletions

View File

@ -208,10 +208,10 @@ def restyOp(method):
def op_submit_systemctl_restart():
current_os = mw.getOs()
if current_os.startswith("freebsd"):
mw.execShell('service '+getPluginName()+' restart')
mw.execShell('service httpd restart')
return True
mw.execShell('systemctl restart '+getPluginName())
mw.execShell('systemctl restart httpd')
return True