Update index.py

This commit is contained in:
Mr Chen
2024-10-01 15:46:11 +08:00
parent c694688220
commit 0ab0a918c3
-3
View File
@@ -233,9 +233,6 @@ def pgOp(method):
return 'ok'
return data[1]
if method == 'stop' or method == 'restart':
mw.execShell(file + ' ' + 'stop')
data = mw.execShell('systemctl ' + method+ '' + getPluginName())
if data[1] == '':
return 'ok'