Commit 8d236e6c authored by qa_quantgroup's avatar qa_quantgroup

update

parent 4880f7a7
...@@ -44,8 +44,8 @@ function transByUrl() ...@@ -44,8 +44,8 @@ function transByUrl()
function transByPara() function transByPara()
{ {
if [ -n "$4" ];then if [ -n "$4" ];then
echo "sed -i \"s/\/$3/\/$1-$ip_last.q-gp.com/g\" $4" echo "sed -i \"s/\/$3/\/$5-$3/g\" $4"
sed -i "s/\/$3/\/$1-$ip_last.q-gp.com/g" $4 sed -i "s/\/$3/\/$5-$3/g" $4
fi fi
} }
...@@ -71,26 +71,47 @@ if [ "$file_count" -gt 0 ]; then ...@@ -71,26 +71,47 @@ if [ "$file_count" -gt 0 ]; then
done done
else else
echo "is replace $re_replace_ip ip for $entry" echo "is replace $re_replace_ip ip for $entry"
echo "sed -i \"s/\/m.xyqb.com/\/${re_replace_ip}-m.xyqb.com/g\" $entry" for host in $hosts
sed -i "s/\/m.xyqb.com/\/${re_replace_ip}-m.xyqb.com/g" $entry do
sed -i "s/\/bt.xyqb.com/\/${re_replace_ip}-bt.xyqb.com/g" $entry arr=${host//|/ }
sed -i "s/\/api.xyqb.com/\/${re_replace_ip}-api.xyqb.com/g" $entry transByPara $arr $entry $re_replace_ip
sed -i "s/\/r.xyqb.com/\/${re_replace_ip}-r.xyqb.com/g" $entry done
sed -i "s/\/rapi.xyqb.com/\/${re_replace_ip}-rapi.xyqb.com/g" $entry #echo "sed -i \"s/\/m.xyqb.com/\/${re_replace_ip}-m.xyqb.com/g\" $entry ..."
sed -i "s/\/payapi.xyqb.com/\/${re_replace_ip}-payapi.xyqb.com/g" $entry #sed -i "s/\/m.xyqb.com/\/${re_replace_ip}-m.xyqb.com/g" $entry
sed -i "s/\/pay.xyqb.com/\/${re_replace_ip}-pay.xyqb.com/g" $entry #sed -i "s/\/bt.xyqb.com/\/${re_replace_ip}-bt.xyqb.com/g" $entry
sed -i "s/\/off.xyqb.com/\/${re_replace_ip}-off.xyqb.com/g" $entry #sed -i "s/\/api.xyqb.com/\/${re_replace_ip}-api.xyqb.com/g" $entry
sed -i "s/\/offapi.xyqb.com/\/${re_replace_ip}-offapi.xyqb.com/g" $entry #sed -i "s/\/r.xyqb.com/\/${re_replace_ip}-r.xyqb.com/g" $entry
sed -i "s/\/financial.xyqb.com/\/${re_replace_ip}-financial.xyqb.com/g" $entry #sed -i "s/\/rapi.xyqb.com/\/${re_replace_ip}-rapi.xyqb.com/g" $entry
sed -i "s/\/fsapi.xyqb.com/\/${re_replace_ip}-fsapi.xyqb.com/g" $entry #sed -i "s/\/payapi.xyqb.com/\/${re_replace_ip}-payapi.xyqb.com/g" $entry
sed -i "s/\/auth.xyqb.com/\/${re_replace_ip}-auth.xyqb.com/g" $entry #sed -i "s/\/pay.xyqb.com/\/${re_replace_ip}-pay.xyqb.com/g" $entry
sed -i "s/\/qapi.xyqb.com/\/${re_replace_ip}-qapi.xyqb.com/g" $entry #sed -i "s/\/off.xyqb.com/\/${re_replace_ip}-off.xyqb.com/g" $entry
sed -i "s/\/mallapi.xyqb.com/\/${re_replace_ip}-mallapi.xyqb.com/g" $entry #sed -i "s/\/offapi.xyqb.com/\/${re_replace_ip}-offapi.xyqb.com/g" $entry
sed -i "s/\/scapi.xyqb.com/\/${re_replace_ip}-scapi.xyqb.com/g" $entry #sed -i "s/\/financial.xyqb.com/\/${re_replace_ip}-financial.xyqb.com/g" $entry
sed -i "s/\/gyxdapi.xyqb.com/\/${re_replace_ip}-gyxdapi.xyqb.com/g" $entry #sed -i "s/\/fsapi.xyqb.com/\/${re_replace_ip}-fsapi.xyqb.com/g" $entry
sed -i "s/\/btapi.xyqb.com/\/${re_replace_ip}-btapi.xyqb.com/g" $entry #sed -i "s/\/auth.xyqb.com/\/${re_replace_ip}-auth.xyqb.com/g" $entry
#sed -i "s/\/qapi.xyqb.com/\/${re_replace_ip}-qapi.xyqb.com/g" $entry
#sed -i "s/\/mallapi.xyqb.com/\/${re_replace_ip}-mallapi.xyqb.com/g" $entry
#sed -i "s/\/scapi.xyqb.com/\/${re_replace_ip}-scapi.xyqb.com/g" $entry
#sed -i "s/\/gyxdapi.xyqb.com/\/${re_replace_ip}-gyxdapi.xyqb.com/g" $entry
#sed -i "s/\/btapi.xyqb.com/\/${re_replace_ip}-btapi.xyqb.com/g" $entry
fi fi
done done
fi fi
# sed -i "s/\/m.xyqb.com/\/xyqb-ui-$ip_last.q-gp.com/g" $entry
# sed -i "s/\/bt.xyqb.com/\/${server_host}:7050/g" $entry
# sed -i "s/\/api.xyqb.com/\/${server_host}:7003/g" $entry
# sed -i "s/\/r.xyqb.com/\/${server_host}:7004/g" $entry
# sed -i "s/\/rapi.xyqb.com/\/${server_host}:7005/g" $entry
# sed -i "s/\/payapi.xyqb.com/\/${server_host}:7006/g" $entry
# sed -i "s/\/pay.xyqb.com/\/${server_host}:7007/g" $entry
# sed -i "s/\/off.xyqb.com/\/${server_host}:7008/g" $entry
# sed -i "s/\/offapi.xyqb.com/\/${server_host}:7010/g" $entry
# sed -i "s/\/financial.xyqb.com/\/${server_host}:7011/g" $entry
# sed -i "s/\/fsapi.xyqb.com/\/${server_host}:7012/g" $entry
# sed -i "s/\/auth.xyqb.com/\/${server_host}:7013/g" $entry
# sed -i "s/\/qapi.xyqb.com/\/${server_host}:7014/g" $entry
# sed -i "s/\/mallapi.xyqb.com/\/${server_host}:7019/g" $entry
# sed -i "s/\/scapi.xyqb.com/\/${server_host}:7021/g" $entry
# sed -i "s/\/gyxdapi.xyqb.com/\/${server_host}:7029/g" $entry
# sed -i "s/\/btapi.xyqb.com/\/${server_host}:7025/g" $entry
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