Commit 8c98226e authored by 智勇's avatar 智勇

up

parent 5fd2bccd
...@@ -27,7 +27,7 @@ function transByPort() ...@@ -27,7 +27,7 @@ function transByPort()
{ {
if [ -n "$4" ];then if [ -n "$4" ];then
echo "sed -i \"s/\/$3.xyqb.com/\/$1-$ip_last.q-gp.com/g\" $4" echo "sed -i \"s/\/$3.xyqb.com/\/$1-$ip_last.q-gp.com/g\" $4"
sed -i "s/\/$3/\/$1-$ip_last.q-gp.com/g" $4 sed -i "s/\/$3.xyqb.com/\/$1-$ip_last.q-gp.com/g" $4
fi fi
} }
...@@ -35,7 +35,7 @@ function transByUrl() ...@@ -35,7 +35,7 @@ function transByUrl()
{ {
if [ -n "$4" ];then if [ -n "$4" ];then
echo "sed -i \"s/\/$3.xyqb.com/\/${server_host}:$2/g\" $4" echo "sed -i \"s/\/$3.xyqb.com/\/${server_host}:$2/g\" $4"
sed -i "s/\/$3/\/${server_host}:$2/g" $4 sed -i "s/\/$3.xyqb.com/\/${server_host}:$2/g" $4
fi fi
} }
......
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