From d2a4f90ef93c08c1e594ca0981a31fa483fa5866 Mon Sep 17 00:00:00 2001 From: midoks Date: Sun, 19 Jun 2022 16:03:04 +0800 Subject: [PATCH] Update index.py --- plugins/memcached/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/memcached/index.py b/plugins/memcached/index.py index baa0f744a..b3bf5fbaa 100755 --- a/plugins/memcached/index.py +++ b/plugins/memcached/index.py @@ -129,7 +129,6 @@ def initDreplace(): def memOp(method): file = initDreplace() - data = mw.execShell(file + ' ' + method) if not mw.isAppleSystem(): data = mw.execShell('systemctl ' + method + ' ' + getPluginName()) @@ -137,6 +136,7 @@ def memOp(method): return 'ok' return data[1] + data = mw.execShell(file + ' ' + method) if data[1] == '': return 'ok' return data[1]