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
a7a59a17
Commit
a7a59a17
authored
Mar 07, 2017
by
root
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改IP为配置文件
parent
c4848fce
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
9 deletions
+16
-9
1_mount_config_files.sh
qa_shell_script/1_mount_config_files.sh
+5
-1
get_env_ip.sh
qa_shell_script/config_server/get_env_ip.sh
+1
-5
remote_excute_rabbitmq.sh
qa_shell_script/remote_excute_rabbitmq.sh
+9
-2
sub_shell.sh
qa_shell_script/sub_shell.sh
+1
-1
No files found.
qa_shell_script/1_mount_config_files.sh
View file @
a7a59a17
...
@@ -3,9 +3,13 @@ target_ip=$1
...
@@ -3,9 +3,13 @@ target_ip=$1
IP_host_first
=
"192.168.4."
IP_host_first
=
"192.168.4."
config_files
=
/home/config_files
config_files
=
/home/config_files
script_path
=
/home/qa-deploy-utils/qa_shell_script
script_path
=
/home/qa-deploy-utils/qa_shell_script
pwd_path
=
"/home/qa-deploy-utils/qa_shell_script"
config_server
=
"
$pwd_path
/config_server"
project_path
=
`
cat
$config_server
/get_env_ip.sh
`
if
[[
$target_ip
==
"ALL"
]]
;
then
if
[[
$target_ip
==
"ALL"
]]
;
then
for
ip_last_num
in
12 13 14 15 16 17 24 151 152
for
ip_last_num
in
$project_path
do
do
expect
-c
"
expect
-c
"
set timeout 10
set timeout 10
...
...
qa_shell_script/config_server/get_env_ip.sh
View file @
a7a59a17
IP_host
=
3 12 13 14 15 16 17 24 151 152
12 13 14 15 16 17 22 24 50 151 152
for
i
in
${
IP_HOST
[@]
}
do
echo
$i
done
\ No newline at end of file
qa_shell_script/remote_excute_rabbitmq.sh
View file @
a7a59a17
#!/bin/bash
#!/bin/bash
IP_host_first
=
"192.168.4."
IP_host_first
=
"192.168.4."
for
ip_last_num
in
3 12 13 14 15 16 17 24 151 152
pwd_path
=
"/home/qa-deploy-utils/qa_shell_script"
config_server
=
"
$pwd_path
/config_server"
project_path
=
`
cat
$config_server
/get_env_ip.sh
`
for
ip_last_num
in
$project_path
do
do
expect
-c
"
expect
-c
"
set timeout 10
set timeout 10
...
@@ -12,4 +19,4 @@ for ip_last_num in 3 12 13 14 15 16 17 24 151 152
...
@@ -12,4 +19,4 @@ for ip_last_num in 3 12 13 14 15 16 17 24 151 152
expect
\"
]#
\"
expect
\"
]#
\"
send
\"
exit
\r\"
send
\"
exit
\r\"
expect eof;"
expect eof;"
done
done
\ No newline at end of file
qa_shell_script/sub_shell.sh
View file @
a7a59a17
...
@@ -4,7 +4,7 @@ public_ip="139.198.2.95"
...
@@ -4,7 +4,7 @@ public_ip="139.198.2.95"
mkdir
/home/sub_config_file_dont_rm
mkdir
/home/sub_config_file_dont_rm
for
ip_last_num
in
12 13 14 15 16 17 24 50 151 152
for
ip_last_num
in
12 13 14 15 16 17 2
2 2
4 50 151 152
do
do
cd
/home/sub_config_file_dont_rm
cd
/home/sub_config_file_dont_rm
mkdir
${
IP_host_first
}${
ip_last_num
}
mkdir
${
IP_host_first
}${
ip_last_num
}
...
...
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