From 076f8e036519e97a5b344ea8904c06686a26dfa1 Mon Sep 17 00:00:00 2001 From: dami Date: Sat, 29 Nov 2025 15:16:44 +0800 Subject: [PATCH] Update index.py --- plugins/doh/index.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/plugins/doh/index.py b/plugins/doh/index.py index 72380dd27..dda0fe72b 100755 --- a/plugins/doh/index.py +++ b/plugins/doh/index.py @@ -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():