From 9bb59a1559bcd46f1be036e52d5af162f9fbd3ce Mon Sep 17 00:00:00 2001 From: midoks Date: Thu, 24 Aug 2023 18:10:07 +0800 Subject: [PATCH] Update index.py --- plugins/openresty/index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/openresty/index.py b/plugins/openresty/index.py index 6c5b43bd5..9c37b8e65 100755 --- a/plugins/openresty/index.py +++ b/plugins/openresty/index.py @@ -264,7 +264,7 @@ def restyOp(method): current_os = mw.getOs() if current_os == "darwin": - data = mw.execShell('systemctl ' + method + ' openresty') + data = mw.execShell(file + ' ' + method) if data[1] == '': return 'ok' return data[1] @@ -275,7 +275,7 @@ def restyOp(method): return 'ok' return data[1] - data = mw.execShell(file + ' ' + method) + data = mw.execShell('systemctl ' + method + ' openresty') if data[1] == '': return 'ok' return data[1]