if valid_ip $ip_value;then target_db_host="$ip_value";else target_db_host="192.168.4.$ip_value";fi
function db_schema_sync()
{
database=$1
...
...
@@ -33,7 +52,7 @@ function db_schema_sync()
sh $work_dir/db_gen_config.sh $source_db_host$source_db_user$source_db_pwd$target_db_host$target_db_user$target_db_pwd$database$config_file_name$db_backup_sub_foldersfalse