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
d7228768
Commit
d7228768
authored
Mar 27, 2017
by
daidekun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改默认目录
parent
826efb51
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
db_gen_config.sh
db-utils/db_gen_config.sh
+1
-1
db_schema_sync.sh
db-utils/db_schema_sync.sh
+3
-2
publish_db_schema_to_all_env.sh
db-utils/publish_db_schema_to_all_env.sh
+2
-0
No files found.
db-utils/db_gen_config.sh
View file @
d7228768
...
@@ -23,7 +23,7 @@ config_file_name=$8
...
@@ -23,7 +23,7 @@ config_file_name=$8
db_backup_sub_folders
=
$9
db_backup_sub_folders
=
$9
port
=
""
port
=
""
sync_config_folder
=
~
/db_sync_configs
sync_config_folder
=
/home/db_sync
/db_sync_configs
base_config_file
=
$sync_config_folder
/base_config.json
base_config_file
=
$sync_config_folder
/base_config.json
mkdir
$db_backup_sub_folders
mkdir
$db_backup_sub_folders
...
...
db-utils/db_schema_sync.sh
View file @
d7228768
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
# -------------------------------------------------------------------------------
# -------------------------------------------------------------------------------
source
~/.bash_profile
source
~/.bash_profile
source
~/.profile
if
[
$#
-ne
8
]
;
then
if
[
$#
-ne
8
]
;
then
echo
"---------------"
echo
"---------------"
...
@@ -33,8 +34,8 @@ sync_db_name=$7
...
@@ -33,8 +34,8 @@ sync_db_name=$7
re_replace_ip
=
$8
re_replace_ip
=
$8
work_dir
=
/home/quant_group/qa-deploy-utils/db-utils
work_dir
=
/home/quant_group/qa-deploy-utils/db-utils
sync_config_folder
=
~
/db_sync_configs
sync_config_folder
=
/home/db_sync
/db_sync_configs
db_backup_folder
=
~
/db_backups
db_backup_folder
=
/home/db_sync
/db_backups
function
db_schema_sync
()
function
db_schema_sync
()
{
{
...
...
db-utils/publish_db_schema_to_all_env.sh
View file @
d7228768
...
@@ -8,6 +8,8 @@
...
@@ -8,6 +8,8 @@
# -------------------------------------------------------------------------------
# -------------------------------------------------------------------------------
source
~/.bash_profile
source
~/.bash_profile
source
~/.profile
work_dir
=
/home/quant_group/test-utils/db-utils
work_dir
=
/home/quant_group/test-utils/db-utils
if
[
$#
-gt
0
]
;
then
if
[
$#
-gt
0
]
;
then
...
...
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