Update index.py

This commit is contained in:
dami
2025-11-29 15:16:44 +08:00
parent 37c850cf6c
commit 076f8e0365
+2 -6
View File
@@ -275,18 +275,14 @@ def isSqlError(mysqlMsg):
def appOp(method):
file = initDreplace()
initDreplace()
if not mw.isAppleSystem():
data = mw.execShell('systemctl ' + method + ' ' + getPluginName())
if data[1] == '':
return 'ok'
return 'fail'
data = mw.execShell(__SR + file + ' ' + method)
if data[1] == '':
return 'ok'
return data[0]
return "fail"
def start():