1
0
mirror of https://github.com/SunnyQjm/NDNDeployment.git synced 2026-06-05 23:49:35 +08:00

修改脚本

This commit is contained in:
SunnyQjm
2019-03-29 21:14:30 +08:00
parent 3181dcffca
commit d67092be1e
2 changed files with 9 additions and 4 deletions
+7 -2
View File
@@ -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
View File
@@ -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")