Commit 4d132c5f authored by daidekun's avatar daidekun

if if [ $run_sql_file ]; then

		run_sql_file
	fi
parent 66bf0b8a
...@@ -34,6 +34,7 @@ target_db_pwd=$6 ...@@ -34,6 +34,7 @@ target_db_pwd=$6
sync_db_name=$7 sync_db_name=$7
re_replace_ip=$8 re_replace_ip=$8
delete_business_data=$9 delete_business_data=$9
run_sql_file=$10
work_dir=/home/qa-deploy-utils/db-utils work_dir=/home/qa-deploy-utils/db-utils
sync_config_folder=~/db_sync_configs sync_config_folder=~/db_sync_configs
...@@ -87,8 +88,14 @@ then ...@@ -87,8 +88,14 @@ then
db_schema_sync $db_name db_schema_sync $db_name
echo $db_name echo $db_name
done done
if [ $run_sql_file ]; then
run_sql_file run_sql_file
fi
else else
db_schema_sync $sync_db_name db_schema_sync $sync_db_name
if [ $run_sql_file ]; then
run_sql_file run_sql_file
fi
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