From fdbf49c5db8a75fc52cefb7332fdaa8bc8a3576f Mon Sep 17 00:00:00 2001 From: midoks Date: Wed, 29 Jun 2022 02:47:00 +0800 Subject: [PATCH] Update index.py --- plugins/openresty/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/openresty/index.py b/plugins/openresty/index.py index 67d905fc8..f84e8d2b5 100755 --- a/plugins/openresty/index.py +++ b/plugins/openresty/index.py @@ -212,7 +212,7 @@ def restyOp(method): # 启动时,先检查一下配置文件 check = getServerDir() + "/bin/openresty -t" check_data = mw.execShell(check) - if check_data[1].find('test failed') != -1: + if not check_data[1].find('test is successful'): return check_data[1] if not mw.isAppleSystem():