Commit f68960ee authored by qa_quantgroup's avatar qa_quantgroup

remove expect *ssword* { send \!QAZ2wsx\r }

parent 0cf53e2d
...@@ -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 \"]#\"
......
...@@ -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 \"]#\"
......
#!/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
...@@ -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\"
......
...@@ -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 \"]#\"
......
...@@ -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
...@@ -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 \"]#\"
......
...@@ -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 \"]#\"
......
...@@ -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
sshpass -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
...@@ -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
......
...@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment