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

更新project-deploy.sh

parent d8bd1dc7
......@@ -78,6 +78,15 @@ function weight() {
echo "http://internal.jump.ibreader.com/api/deploy/slb/controlSLB?ipStrList=$IP&vGroupId=$2&weight=$3"
curl "http://internal.jump.ibreader.com/api/deploy/slb/controlSLB?ipStrList=$IP&vGroupId=$2&weight=$3"
}
# $1 方法名 设置权重
# $2 虚拟主机组
# $3 weight 权重
#
function weight_ip() {
echo "http://internal.jump.ibreader.com/api/deploy/slb/controlSLB?ipStrList=$2&vGroupId=$3&weight=$4"
curl "http://internal.jump.ibreader.com/api/deploy/slb/controlSLB?ipStrList=$2&vGroupId=$3&weight=$4"
}
# if [ "$1" -z ]; then
# $1 = "deploy"
......@@ -93,6 +102,9 @@ case $1 in
weight)
weight $*
;;
weight_ip)
weight_ip $*
;;
restart)
restart $*
;;
......
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