Commit 2c5120dd authored by QA-甘 盛聪's avatar QA-甘 盛聪

update

parent fca953f4
......@@ -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\"
......
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