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

更新project-deploy.sh

parent cdfcdfdb
......@@ -3,6 +3,8 @@ cd `dirname $0`
BIN_DIR=`pwd`
DEPLOY_DIR=`pwd`
IP=$(echo $SSH_CONNECTION | awk '{print $3}')
echo $IP
#
# $1 方法名 deploy 发布项目
......@@ -37,13 +39,12 @@ function check() {
# $1 方法名 设置权重
# $2 ip
# $3 虚拟主机组
# $4 weight 权重
# $2 虚拟主机组
# $3 weight 权重
#
function weight() {
echo "http://172.17.255.136:8084/api/deploy/slb/controlSLB?ipStrList=$2&vGroupId=$3&weight=$4"
curl http://172.17.255.136:8084/api/deploy/slb/controlSLB?ipStrList=$2&vGroupId=$3&weight=$4
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
exit 1
}
......
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