20 lines
424 B
Plaintext
20 lines
424 B
Plaintext
#!/usr/bin/expect -f
|
|
# deploy-phase-hospitalimg.exp
|
|
# 部署 hospitalImage 模块 + admin 更新到 124.221.67.199
|
|
|
|
set timeout 30
|
|
set password "Szgt888."
|
|
set host "124.221.67.199"
|
|
set user "root"
|
|
set remote_dir "/root/yuyueguahao"
|
|
|
|
# 1. 上传后端新文件
|
|
spawn scp -r $argv \
|
|
${user}@${host}:${remote_dir}/
|
|
|
|
expect {
|
|
"password:" { send "$password\r" }
|
|
"yes/no" { send "yes\r"; exp_continue }
|
|
}
|
|
expect eof
|