Skip to content

Commit 076f8e0

Browse files
committed
Update index.py
1 parent 37c850c commit 076f8e0

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

plugins/doh/index.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -275,18 +275,14 @@ def isSqlError(mysqlMsg):
275275

276276

277277
def appOp(method):
278-
file = initDreplace()
278+
initDreplace()
279279

280280
if not mw.isAppleSystem():
281281
data = mw.execShell('systemctl ' + method + ' ' + getPluginName())
282282
if data[1] == '':
283283
return 'ok'
284284
return 'fail'
285-
286-
data = mw.execShell(__SR + file + ' ' + method)
287-
if data[1] == '':
288-
return 'ok'
289-
return data[0]
285+
return "fail"
290286

291287

292288
def start():

0 commit comments

Comments
 (0)