Commit 1d270ca6 authored by 智勇's avatar 智勇

update

parent 1d76b059
......@@ -17,12 +17,9 @@ config_server="$pwd_path/config_server"
project_path=`cat $config_server/project_path.sh`
config_path=`cat $config_server/config_path.sh`
echo $server_host
cd $db_sub_backup_folder
file_count=`ls -l |grep "^-"|wc -l`
hosts=`node $config_server/get_project_config.js -type multi -attr port/url -attr2 true`
function transByPort()
......@@ -75,9 +72,7 @@ if [ $database_name = 'mall' ];then
fi
done
else
echo "./* file count is $file_count"
if [ "$file_count" -gt 0 ]; then
sed -i "s/https\:/http\:/g" *
sed -i "s/https\:/http\:/g" $db_sub_backup_folder/*
if [ "$re_replace_ip" = true ]; then
echo "replace public ip for $db_sub_backup_folder/*"
for host in $hosts
......@@ -102,7 +97,6 @@ else
# transByPara $arr $entry $re_replace_ip
#done
fi
fi
fi
# sed -i "s/\/m.xyqb.com/\/xyqb-ui-$ip_last.q-gp.com/g" $entry
......
......@@ -93,7 +93,7 @@ function db_schema_sync()
cd $db_backup_sub_folders
file_count=`ls -l | grep .sql$ | wc -l`
echo "./*.sql file count is $file_count"
echo "$db_backup_sub_folders/*.sql file count is $file_count"
if [ "$file_count" -gt 0 ]; then
echo "--- Step 2: replace domain name in tables: $database $db_backup_sub_folders ---"
echo "--- Step 2: is re_replace_ip: $re_replace_ip ---"
......
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