Commit 4880f7a7 authored by qa_quantgroup's avatar qa_quantgroup

update

parent c4dfa886
......@@ -62,7 +62,7 @@ if [ "$file_count" -gt 0 ]; then
arr=${host//|/ }
transByPort $arr $entry
done
elif [ "re_replace_ip" = false ];then
elif [ "$re_replace_ip" = false ];then
echo "is replace ip for $entry"
for host in $hosts
do
......@@ -71,6 +71,7 @@ if [ "$file_count" -gt 0 ]; then
done
else
echo "is replace $re_replace_ip ip for $entry"
echo "sed -i \"s/\/m.xyqb.com/\/${re_replace_ip}-m.xyqb.com/g\" $entry"
sed -i "s/\/m.xyqb.com/\/${re_replace_ip}-m.xyqb.com/g" $entry
sed -i "s/\/bt.xyqb.com/\/${re_replace_ip}-bt.xyqb.com/g" $entry
sed -i "s/\/api.xyqb.com/\/${re_replace_ip}-api.xyqb.com/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