Commit 270c0b9e authored by 白秀江's avatar 白秀江

更新project-deploy.sh

parent 72bb4b91
......@@ -36,20 +36,15 @@ function check() {
return;
}
#
# $1 方法名 恢复机器
# $2 ip
#
function resume() {
curl -v http://172.17.173.227:28089/api/deploy/slb/controlSLB?ipStrList=$2&vGroupId=rsp-2zepb30byclb8&weight=100
return;
}
#
# $1 方法名 暂停机器
# $2 ip
# $3 虚拟主机组
# $4 weight 权重
#
function pause() {
curl -v http://172.17.173.227:28089/api/deploy/slb/controlSLB?ipStrList=$2&vGroupId=rsp-2zepb30byclb8&weight=0
function weight() {
curl -v http://172.17.173.227:28089/api/deploy/slb/controlSLB?ipStrList=$2&vGroupId=$3&weight=$4
return;
}
if [ $1 -z ]; then
......
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