Commit 91217a9b authored by 智勇's avatar 智勇

增加host是否获取成功的判断

parent 4ab9f52d
......@@ -10,7 +10,12 @@ echo "NAMESPACE is $NAMESPACE"
# 运行qa工具
echo "SYSTEM_NAME is $SYSTEM_NAME"
host=`curl -s "http://172.17.1.7:3003/proconfig/get_info?system_name=${SYSTEM_NAME}&key=host_name"`
host=`curl -s -m 5 "http://172.17.1.7:3003/proconfig/get_info?system_name=${SYSTEM_NAME}&key=host_name"`
if [ -z "$host" ]; then
echo "host is empty,请检查服务 http://172.17.1.7:3003"
exit -1
fi
echo "host: ${host}"
for entry in ./*tgz
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment