Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-deploy-utils
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qa-deploy-utils
Commits
51fc5f22
Commit
51fc5f22
authored
Mar 22, 2018
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
up
parent
0998e075
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
db_gen_config.sh
db-utils/db_gen_config.sh
+12
-5
No files found.
db-utils/db_gen_config.sh
View file @
51fc5f22
...
@@ -18,8 +18,6 @@ target_db_pwd=$6
...
@@ -18,8 +18,6 @@ target_db_pwd=$6
sync_db_name
=
$7
sync_db_name
=
$7
database_name
=
$sync_db_name
database_name
=
$sync_db_name
source_db_user
=
`
curl
-s
http://192.168.4.3:10088/config_server/get_db_config/
$database_name
/user
`
source_db_pwd
=
`
curl
-s
http://192.168.4.3:10088/config_server/get_db_config/
$database_name
/pwd
`
config_file_name
=
$8
config_file_name
=
$8
db_backup_sub_folders
=
$9
db_backup_sub_folders
=
$9
...
@@ -178,9 +176,18 @@ echo "prepare to get source_port"
...
@@ -178,9 +176,18 @@ echo "prepare to get source_port"
# port='9901'
# port='9901'
# fi
# fi
sys_table_list
=
`
curl
-s
http://192.168.4.3:10088/config_server/get_db_config/
$database_name
/sys_table_list
`
# source_db_user=`curl -s http://192.168.4.3:10088/config_server/get_db_config/$database_name/user`
source_db_host
=
`
curl
-s
http://192.168.4.3:10088/config_server/get_db_config/
$database_name
/host
`
# source_db_pwd=`curl -s http://192.168.4.3:10088/config_server/get_db_config/$database_name/pwd`
port
=
`
curl
-s
http://192.168.4.3:10088/config_server/get_db_config/
$database_name
/port
`
# sys_table_list=`curl -s http://192.168.4.3:10088/config_server/get_db_config/$database_name/sys_table_list`
# 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"
`
echo
"source_port is
$port
"
echo
"source_port is
$port
"
echo
"copy
${
base_config_file
}
to
${
config_file_name
}
"
echo
"copy
${
base_config_file
}
to
${
config_file_name
}
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment