mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update index.py
This commit is contained in:
@@ -212,7 +212,7 @@ def restyOp(method):
|
|||||||
# 启动时,先检查一下配置文件
|
# 启动时,先检查一下配置文件
|
||||||
check = getServerDir() + "/bin/openresty -t"
|
check = getServerDir() + "/bin/openresty -t"
|
||||||
check_data = mw.execShell(check)
|
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]
|
return check_data[1]
|
||||||
|
|
||||||
if not mw.isAppleSystem():
|
if not mw.isAppleSystem():
|
||||||
|
|||||||
Reference in New Issue
Block a user