Commit cbceb7d7 authored by 智勇's avatar 智勇

up

parent 51fc5f22
......@@ -182,12 +182,12 @@ echo "prepare to get source_port"
# source_db_host=`curl -s http://192.168.4.3:10088/config_server/get_db_config/$database_name/host`
# port=`curl -s http://192.168.4.3:10088/config_server/get_db_config/$database_name/port`
conf = `curl -s http://192.168.4.3:10088/config_server/get_db_config/$database_name/all`
source_db_user = `echo $conf | jq ".user"`
source_db_pwd = `echo $conf | jq ".pwd"`
sys_table_list = `echo $conf | jq ".sys_table_list"`
source_db_host = `echo $conf | jq ".host"`
port = `echo $conf | jq ".port"`
conf=`curl -s http://192.168.4.3:10088/config_server/get_db_config/$database_name/all`
source_db_user=`echo $conf | jq ".user" | sed 's#"##g'`
source_db_pwd=`echo $conf | jq ".pwd" | sed 's#"##g'`
sys_table_list=`echo $conf | jq ".sys_table_list" | sed 's#"##g'`
source_db_host=`echo $conf | jq ".host" | sed 's#"##g'`
port=`echo $conf | jq ".port" | sed 's#"##g'`
echo "source_port is $port"
echo "copy ${base_config_file} to ${config_file_name}"
......
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