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
f68960ee
Commit
f68960ee
authored
Jul 22, 2017
by
qa_quantgroup
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove expect *ssword* { send \!QAZ2wsx\r }
parent
0cf53e2d
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
16 additions
and
29 deletions
+16
-29
1_mount_config_files.sh
qa_shell_script/1_mount_config_files.sh
+0
-2
remote_initial_env.sh
qa_shell_script/initial_env/remote_initial_env.sh
+0
-1
20170721.sh
qa_shell_script/migrate_ENV/20170721.sh
+10
-0
remote.sh
qa_shell_script/migrate_ENV/remote.sh
+1
-2
remote_excute_msg_center.sh
...pt/old_script/special_project/remote_excute_msg_center.sh
+0
-1
initial_mq.sh
qa_shell_script/rabbitmq/initial_mq.sh
+1
-0
remote_excute.sh
qa_shell_script/remote_excute.sh
+0
-2
remote_excute_by_step.sh
qa_shell_script/remote_excute_by_step.sh
+0
-3
remote_excute_new.sh
qa_shell_script/remote_excute_new.sh
+3
-15
remote_excute_rabbitmq.sh
qa_shell_script/remote_excute_rabbitmq.sh
+0
-1
remote_excute_start.sh
qa_shell_script/remote_excute_start.sh
+1
-2
No files found.
qa_shell_script/1_mount_config_files.sh
View file @
f68960ee
...
@@ -14,7 +14,6 @@ if [[ $target_ip == "ALL" ]]; then
...
@@ -14,7 +14,6 @@ if [[ $target_ip == "ALL" ]]; then
expect
-c
"
expect
-c
"
set timeout 10
set timeout 10
spawn ssh root@
${
IP_host_first
}${
ip_last_num
}
spawn ssh root@
${
IP_host_first
}${
ip_last_num
}
expect *ssword* { send !QAZ2wsx
\r
}
expect
\"
]#
\"
expect
\"
]#
\"
send
\"
umount
$script_path
\r\"
send
\"
umount
$script_path
\r\"
set timeout -1
set timeout -1
...
@@ -47,7 +46,6 @@ else
...
@@ -47,7 +46,6 @@ else
expect
-c
"
expect
-c
"
set timeout 10
set timeout 10
spawn ssh root@
${
IP_host_first
}${
target_ip
}
spawn ssh root@
${
IP_host_first
}${
target_ip
}
expect *ssword* { send !QAZ2wsx
\r
}
expect
\"
]#
\"
expect
\"
]#
\"
send
\"
umount -l /home/qa-deploy-utils/qa_shell_script
\r\"
send
\"
umount -l /home/qa-deploy-utils/qa_shell_script
\r\"
expect
\"
]#
\"
expect
\"
]#
\"
...
...
qa_shell_script/initial_env/remote_initial_env.sh
View file @
f68960ee
...
@@ -15,7 +15,6 @@ sh /home/qa-deploy-utils/qa_shell_script/1_mount_config_files.sh $ip_last
...
@@ -15,7 +15,6 @@ sh /home/qa-deploy-utils/qa_shell_script/1_mount_config_files.sh $ip_last
expect
-c
"
expect
-c
"
set timeout 10
set timeout 10
spawn ssh root@
${
ip
}
spawn ssh root@
${
ip
}
expect *ssword* { send !QAZ2wsx
\r
}
expect
\"
]#
\"
expect
\"
]#
\"
send
\"
cd /usr/lib/rabbitmq/bin
\r\"
send
\"
cd /usr/lib/rabbitmq/bin
\r\"
expect
\"
]#
\"
expect
\"
]#
\"
...
...
qa_shell_script/migrate_ENV/20170721.sh
0 → 100644
View file @
f68960ee
#!/bin/bash
cd
/home/quant_group/di-ting-ui
sed
-i
"s/~0.4.2/>=0.4.2/g"
package.json
npm
install
jpegtran-bin
npm
install
optipng-bin
sh /home/qa-deploy-utils/qa_shell_script/2_get_code_by_name.sh di-ting-ui
$1
sh /home/qa-deploy-utils/qa_shell_script/3_link_config_file_by_name.sh di-ting-ui
sh /home/qa-deploy-utils/qa_shell_script/4_build_by_name.sh di-ting-ui
qa_shell_script/migrate_ENV/remote.sh
View file @
f68960ee
...
@@ -13,9 +13,8 @@ for ip_last_num in $project_path
...
@@ -13,9 +13,8 @@ for ip_last_num in $project_path
expect
-c
"
expect
-c
"
set timeout 10
set timeout 10
spawn ssh root@
${
IP_host_first
}${
ip_last_num
}
spawn ssh root@
${
IP_host_first
}${
ip_last_num
}
expect *ssword* { send !QAZ2wsx
\r
}
expect
\"
]#
\"
expect
\"
]#
\"
send
\"
sh /home/qa-deploy-utils/qa_shell_script/
migrate_ENV/
$1
\r\"
send
\"
sh /home/qa-deploy-utils/qa_shell_script/
$1
\r\"
set timeout -1
set timeout -1
expect
\"
]#
\"
expect
\"
]#
\"
send
\"
exit
\r\"
send
\"
exit
\r\"
...
...
qa_shell_script/old_script/special_project/remote_excute_msg_center.sh
View file @
f68960ee
...
@@ -16,7 +16,6 @@ public_ip : ${public_ip}
...
@@ -16,7 +16,6 @@ public_ip : ${public_ip}
expect
-c
"
expect
-c
"
set timeout 10
set timeout 10
spawn ssh root@
${
ip
}
spawn ssh root@
${
ip
}
expect *ssword* { send !QAZ2wsx
\r
}
expect
\"
]#
\"
expect
\"
]#
\"
send
\"
cd /home/qa-deploy-utils/qa_shell_script
\r\"
send
\"
cd /home/qa-deploy-utils/qa_shell_script
\r\"
expect
\"
]#
\"
expect
\"
]#
\"
...
...
qa_shell_script/rabbitmq/initial_mq.sh
View file @
f68960ee
...
@@ -129,4 +129,5 @@ add_binding /black_hole contract generate_auth_success generate_auth_success
...
@@ -129,4 +129,5 @@ add_binding /black_hole contract generate_auth_success generate_auth_success
add_binding /black_hole contract waiting_auth_generate waiting_auth_generate
add_binding /black_hole contract waiting_auth_generate waiting_auth_generate
add_binding /black_hole contract generate_success generate_success
add_binding /black_hole contract generate_success generate_success
add_binding /black_hole contract waiting_generate waiting_generate
add_binding /black_hole contract waiting_generate waiting_generate
add_binding /loan_order loan_order_exchange loan_state_msg_queue loan_state_msg_queue
qa_shell_script/remote_excute.sh
View file @
f68960ee
...
@@ -19,7 +19,6 @@ if [ -n "$project_name" ] && [ -n "$branch_name" ]; then
...
@@ -19,7 +19,6 @@ if [ -n "$project_name" ] && [ -n "$branch_name" ]; then
expect
-c
"
expect
-c
"
set timeout 10
set timeout 10
spawn ssh root@
${
ip
}
spawn ssh root@
${
ip
}
expect *ssword* { send !QAZ2wsx
\r
}
expect
\"
]#
\"
expect
\"
]#
\"
send
\"
cd /home/qa-deploy-utils/qa_shell_script
\r\"
send
\"
cd /home/qa-deploy-utils/qa_shell_script
\r\"
expect
\"
]#
\"
expect
\"
]#
\"
...
@@ -32,7 +31,6 @@ else
...
@@ -32,7 +31,6 @@ else
expect
-c
"
expect
-c
"
set timeout 10
set timeout 10
spawn ssh root@
${
ip
}
spawn ssh root@
${
ip
}
expect *ssword* { send !QAZ2wsx
\r
}
expect
\"
]#
\"
expect
\"
]#
\"
send
\"
cd /home/qa-deploy-utils/qa_shell_script
\r\"
send
\"
cd /home/qa-deploy-utils/qa_shell_script
\r\"
expect
\"
]#
\"
expect
\"
]#
\"
...
...
qa_shell_script/remote_excute_by_step.sh
View file @
f68960ee
...
@@ -18,7 +18,6 @@ if $init_shell_script ;then
...
@@ -18,7 +18,6 @@ if $init_shell_script ;then
expect
-c
"
expect
-c
"
set timeout 10
set timeout 10
spawn ssh root@
${
ip
}
spawn ssh root@
${
ip
}
expect *ssword* { send !QAZ2wsx
\r
}
expect
\"
]#
\"
expect
\"
]#
\"
send
\"
rm -rf /home/qa-deploy-utils/qa_shell_script
\r\"
send
\"
rm -rf /home/qa-deploy-utils/qa_shell_script
\r\"
expect
\"
]#
\"
expect
\"
]#
\"
...
@@ -34,7 +33,6 @@ if [ -n "$project_name" ]; then
...
@@ -34,7 +33,6 @@ if [ -n "$project_name" ]; then
expect
-c
"
expect
-c
"
set timeout 10
set timeout 10
spawn ssh root@
${
ip
}
spawn ssh root@
${
ip
}
expect *ssword* { send !QAZ2wsx
\r
}
expect
\"
]#
\"
expect
\"
]#
\"
send
\"
cd /home/qa-deploy-utils/qa_shell_script
\r\"
send
\"
cd /home/qa-deploy-utils/qa_shell_script
\r\"
expect
\"
]#
\"
expect
\"
]#
\"
...
@@ -59,7 +57,6 @@ else
...
@@ -59,7 +57,6 @@ else
expect
-c
"
expect
-c
"
set timeout 10
set timeout 10
spawn ssh root@
${
ip
}
spawn ssh root@
${
ip
}
expect *ssword* { send !QAZ2wsx
\r
}
expect
\"
]#
\"
expect
\"
]#
\"
send
\"
cd /home/qa-deploy-utils/qa_shell_script
\r\"
send
\"
cd /home/qa-deploy-utils/qa_shell_script
\r\"
expect
\"
]#
\"
expect
\"
]#
\"
...
...
qa_shell_script/remote_excute_new.sh
View file @
f68960ee
...
@@ -14,26 +14,14 @@ branch_name : ${branch_name}
...
@@ -14,26 +14,14 @@ branch_name : ${branch_name}
project_type :
${
project_type
}
project_type :
${
project_type
}
public_ip :
${
public_ip
}
public_ip :
${
public_ip
}
"
"
<<<<<<
< HEAD
ssh root@
${
ip
}
"ifconfig"
sshpass
-p
'!QAZ2wsx'
ssh root@
${
ip
}
ifconfig
if
[
-n
"
$project_name
"
]
&&
[
-n
"
$branch_name
"
]
;
then
if
[
-n
"
$project_name
"
]
&&
[
-n
"
$branch_name
"
]
;
then
sshpass
-p
'!QAZ2wsx'
ssh root@
${
ip
}
"cd /home/qa-deploy-utils/qa_shell_script"
ssh root@
${
ip
}
sshpass
-p
'!QAZ2wsx'
ssh root@
${
ip
}
"sh /home/qa-deploy-utils/qa_shell_script/deploy_project_by_name.sh
$project_name
$branch_name
$public_ip
"
else
sshpass
-p
'!QAZ2wsx'
ssh root@
${
ip
}
"cd /home/qa-deploy-utils/qa_shell_script"
sshpass
-p
'!QAZ2wsx'
ssh root@
${
ip
}
"sh /home/qa-deploy-utils/qa_shell_script/deploy_project_by_type.sh
$project_type
$branch_name
$public_ip
"
=======
sshpass
-p
'!QAZ2wsx'
ssh root@
${
ip
}
"ifconfig"
if
[
-n
"
$project_name
"
]
&&
[
-n
"
$branch_name
"
]
;
then
sshpass
-p
'!QAZ2wsx'
ssh root@
${
ip
}
cd
/home/qa-deploy-utils/qa_shell_script
cd
/home/qa-deploy-utils/qa_shell_script
sh /home/qa-deploy-utils/qa_shell_script/deploy_project_by_name.sh
$project_name
$branch_name
$public_ip
sh /home/qa-deploy-utils/qa_shell_script/deploy_project_by_name.sh
$project_name
$branch_name
$public_ip
else
else
ssh
pass
-p
'!QAZ2wsx'
ssh
root@
${
ip
}
ssh root@
${
ip
}
cd
/home/qa-deploy-utils/qa_shell_script
cd
/home/qa-deploy-utils/qa_shell_script
sh /home/qa-deploy-utils/qa_shell_script/deploy_project_by_type.sh
$project_type
$branch_name
$public_ip
sh /home/qa-deploy-utils/qa_shell_script/deploy_project_by_type.sh
$project_type
$branch_name
$public_ip
>>>>>>>
c37e484565713dd4f2e2ef060cef9d7351645849
fi
fi
qa_shell_script/remote_excute_rabbitmq.sh
View file @
f68960ee
...
@@ -12,7 +12,6 @@ for ip_last_num in $project_path
...
@@ -12,7 +12,6 @@ for ip_last_num in $project_path
expect
-c
"
expect
-c
"
set timeout 10
set timeout 10
spawn ssh root@
${
IP_host_first
}${
ip_last_num
}
spawn ssh root@
${
IP_host_first
}${
ip_last_num
}
expect *ssword* { send !QAZ2wsx
\r
}
expect
\"
]#
\"
expect
\"
]#
\"
send
\"
sh /home/qa-deploy-utils/qa_shell_script/rabbitmq/initial_mq.sh
\r\"
send
\"
sh /home/qa-deploy-utils/qa_shell_script/rabbitmq/initial_mq.sh
\r\"
set timeout -1
set timeout -1
...
...
qa_shell_script/remote_excute_start.sh
View file @
f68960ee
...
@@ -8,11 +8,10 @@ for ip_last_num in $target_ip
...
@@ -8,11 +8,10 @@ for ip_last_num in $target_ip
expect
-c
"
expect
-c
"
set timeout 10
set timeout 10
spawn ssh root@
${
IP_host_first
}${
target_ip
}
spawn ssh root@
${
IP_host_first
}${
target_ip
}
expect *ssword* { send !QAZ2wsx
\r
}
expect
\"
]#
\"
expect
\"
]#
\"
send
\"
sh /home/qa-deploy-utils/qa_shell_script/6_start_by_name.sh
$project_name
\r\"
send
\"
sh /home/qa-deploy-utils/qa_shell_script/6_start_by_name.sh
$project_name
\r\"
set timeout -1
set timeout -1
expect
\"
]#
\"
expect
\"
]#
\"
send
\"
exit
\r\"
send
\"
exit
\r\"
expect eof;"
expect eof;"
done
done
\ No newline at end of file
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