Commit f1ae422c authored by 白秀江's avatar 白秀江

更新project-deploy.sh

parent aa412070
...@@ -44,11 +44,22 @@ function restart() { ...@@ -44,11 +44,22 @@ function restart() {
} }
# #
# $1 方法名 检查项目环境 # $1 方法名 检查项目运行状态
# $2 项目目录 # $2 项目目录
# #
function check() { function check() {
return; while [ $COUNT -lt 1 ]; do
echo -e ".\c"
sleep 1
COUNT=`curl -v "$3" | grep "success" | wc -l`
if [ $COUNT -gt 0 ]; then
break
fi
let TIMES=TIMES+1
if [ $TIMES -gt 200 ]; then
exit 1
fi
done
} }
...@@ -60,7 +71,6 @@ function weight() { ...@@ -60,7 +71,6 @@ function weight() {
echo "http://172.17.255.136:8084/api/deploy/slb/controlSLB?ipStrList=$IP&vGroupId=$2&weight=$3" echo "http://172.17.255.136:8084/api/deploy/slb/controlSLB?ipStrList=$IP&vGroupId=$2&weight=$3"
curl "http://172.17.255.136:8084/api/deploy/slb/controlSLB?ipStrList=$IP&vGroupId=$2&weight=$3" curl "http://172.17.255.136:8084/api/deploy/slb/controlSLB?ipStrList=$IP&vGroupId=$2&weight=$3"
exit 1
} }
# if [ "$1" -z ]; then # if [ "$1" -z ]; then
# $1 = "deploy" # $1 = "deploy"
......
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