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
2c5120dd
Commit
2c5120dd
authored
Feb 17, 2017
by
QA-甘 盛聪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
fca953f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
1_mount_config_files.sh
qa_shell_script/1_mount_config_files.sh
+9
-2
No files found.
qa_shell_script/1_mount_config_files.sh
View file @
2c5120dd
...
...
@@ -21,6 +21,7 @@
target_ip
=
$1
IP_host_first
=
"192.168.4."
config_files
=
/home/config_files
script_path
=
/home/qa-deploy-utils/qa_shell_script
if
[[
$target_ip
==
"ALL"
]]
;
then
for
ip_last_num
in
2 12 13 14 15 16 17 24 151
...
...
@@ -30,10 +31,16 @@ if [[ $target_ip == "ALL" ]]; then
spawn ssh root@
${
IP_host_first
}${
ip_last_num
}
expect *ssword* { send !QAZ2wsx
\r
}
expect
\"
]#
\"
send
\"
mkdir -p /home/qa-deploy-utils/qa_shell_script
\r\"
send
\"
umount
$script_path
\r\"
set timeout -1
expect
\"
]#
\"
send
\"
rm -rf
$script_path
\r\"
set timeout -1
expect
\"
]#
\"
send
\"
mkdir -p
$script_path
\r\"
set timeout -1
expect
\"
]#
\"
send
\"
mount -t nfs 192.168.4.3:
/home/qa-deploy-utils/qa_shell_script /home/qa-deploy-utils/qa_shell_script
\r\"
send
\"
mount -t nfs 192.168.4.3:
$script_path
$script_path
\r\"
set timeout -1
expect
\"
]#
\"
send
\"
umount
$config_files
\r\"
...
...
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