Update index.py

This commit is contained in:
midoks 2022-06-29 02:47:00 +08:00
parent ccc31de2d2
commit fdbf49c5db
1 changed files with 1 additions and 1 deletions

View File

@ -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():