mirror of
https://github.com/SunnyQjm/NDNDeployment.git
synced 2026-06-05 23:49:35 +08:00
修改脚本
This commit is contained in:
@@ -5,7 +5,12 @@ ip=$3
|
||||
routerName=$4
|
||||
mapPort=$5
|
||||
index=$6
|
||||
sshArgs=$7
|
||||
force=$7
|
||||
sshArgs=$8
|
||||
|
||||
if [[ ! -n "${force}" ]]; then
|
||||
force=0
|
||||
fi
|
||||
|
||||
PROJ_DIR=/home/${username}/Documents/NDNDeployment
|
||||
DEPLOY_DIR=${PROJ_DIR}/deployment
|
||||
@@ -16,7 +21,7 @@ DEPLOY_DIR=${PROJ_DIR}/deployment
|
||||
set timeout -1
|
||||
spawn ssh root@${ip} -p${mapPort} ${sshArgs} "
|
||||
cd ${PROJ_DIR}
|
||||
sudo ./deploy-nfd.sh 1
|
||||
sudo ./deploy-nfd.sh ${force}
|
||||
"
|
||||
expect {
|
||||
"(yes/no)?" {
|
||||
|
||||
+2
-2
@@ -107,9 +107,9 @@ function deal(){
|
||||
;;
|
||||
"upgrade")
|
||||
if [[ ${ASYNC} -eq 1 ]]; then
|
||||
./_eval_deploy_upgrade.sh ${username} ${password} ${ip} ${routerName} ${mapPort} ${index} "${sshArgs}" &
|
||||
./_eval_deploy_upgrade.sh ${username} ${password} ${ip} ${routerName} ${mapPort} ${index} ${args} "${sshArgs}" &
|
||||
else
|
||||
./_eval_deploy_upgrade.sh ${username} ${password} ${ip} ${routerName} ${mapPort} ${index} "${sshArgs}"
|
||||
./_eval_deploy_upgrade.sh ${username} ${password} ${ip} ${routerName} ${mapPort} ${index} ${args} "${sshArgs}"
|
||||
fi
|
||||
;;
|
||||
"clone")
|
||||
|
||||
Reference in New Issue
Block a user