Commit 120fc1a3 authored by qa_quantgroup's avatar qa_quantgroup
parents 8e2a3024 2de4f027
...@@ -23,21 +23,21 @@ cd $db_sub_backup_folder ...@@ -23,21 +23,21 @@ cd $db_sub_backup_folder
file_count=`ls -l |grep "^-"|wc -l` file_count=`ls -l |grep "^-"|wc -l`
hosts=`node $config_server/get_project_config.js` hosts=`node $config_server/get_project_config.js -type multi -attr port/url`
function transByPort() function transByPort()
{ {
if [ -n "$3" ];then if [ -n "$4" ];then
echo "$1 $2 $3 $4" echo "sed -i \"s/\/$3/\/$1-$ip_last.q-gp.com/g\" $4"
# sed -i "s/\/$3/\/$1-$ip_last.q-gp.com/g" $4 sed -i "s/\/$3/\/$1-$ip_last.q-gp.com/g" $4
fi fi
} }
function transByUrl() function transByUrl()
{ {
if [ -n "$3" ];then if [ -n "$4" ];then
echo "$1 $2 $3 $4" echo "sed -i \"s/\/$3/\/${server_host}:$2/g\" $4"
# sed -i "s/\/$3/\/${server_host}:$2/g" $4 sed -i "s/\/$3/\/${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