|
@@ -32,7 +32,7 @@ node ./scripts/zip.js
|
|
|
# 上传到测试服务器
|
|
|
function uploadServer() {
|
|
|
expect -c "
|
|
|
- spawn scp ./zip/${file_name} root@47.110.251.215:/www/wwwroot/${file_path}
|
|
|
+ spawn scp ./zip/${file_name} root@39.108.216.210:/www/wwwroot/${file_path}
|
|
|
expect {
|
|
|
\"yes/no\" {send \"yes\r\";exp_continue;}
|
|
|
\"*password\" {set timeout 500;send \"${passwd}\r\";}
|
|
@@ -42,7 +42,7 @@ function uploadServer() {
|
|
|
#服务器上的相关操作
|
|
|
/usr/bin/expect << EOF
|
|
|
set time 30
|
|
|
- spawn ssh root@47.110.251.215
|
|
|
+ spawn ssh root@39.108.216.210
|
|
|
expect {
|
|
|
"*yes/no" { send "yes\r"; exp_continue }
|
|
|
"*password:" { send "${passwd}\r" }
|
|
@@ -74,7 +74,7 @@ function delPublic() {
|
|
|
#服务器上的相关操作
|
|
|
/usr/bin/expect << EOF
|
|
|
set time 30
|
|
|
- spawn ssh root@47.110.251.215
|
|
|
+ spawn ssh root@39.108.216.210
|
|
|
expect {
|
|
|
"*yes/no" { send "yes\r"; exp_continue }
|
|
|
"*password:" { send "${passwd}\r" }
|