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

update

parent 315af0cc
......@@ -79,24 +79,18 @@ else
if [ "$file_count" -gt 0 ]; then
sed -i "s/https\:/http\:/g" *
if [ "$re_replace_ip" = true ]; then
for entry in ./*
echo "replace public ip for $db_sub_backup_folder/*"
for host in $hosts
do
echo "replace public ip for $entry"
for host in $hosts
do
arr=${host//|/ }
transByPort $arr $entry
done
arr=${host//|/ }
transByPort $arr $db_sub_backup_folder/*
done
elif [ "$re_replace_ip" = false ];then
for entry in ./*
echo "replace ip for $db_sub_backup_folder/*"
for host in $hosts
do
echo "replace ip for $entry"
for host in $hosts
do
arr=${host//|/ }
transByUrl $arr $entry
done
arr=${host//|/ }
transByUrl $arr $db_sub_backup_folder/*
done
else
echo "replace $re_replace_ip ip for $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