summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authordongwenjuan <dong.wenjuan@zte.com.cn>2018-12-17 10:45:41 +0800
committerdongwenjuan <dong.wenjuan@zte.com.cn>2018-12-17 10:45:41 +0800
commit513b05275cbac2ff98950bb0a384a275dd8884f5 (patch)
tree0a72c63666990811e8ceaf0d5d2ad70589135311 /jjb
parent5f4e5e46334b99859425607e91c00cf7a2a5460e (diff)
Parpare ssh_key for MCP in doctor
Change-Id: I10a79e6003a442572cdaca544c4862844720a3d3 Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
Diffstat (limited to 'jjb')
-rwxr-xr-xjjb/doctor/doctor-env-presetup.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/jjb/doctor/doctor-env-presetup.sh b/jjb/doctor/doctor-env-presetup.sh
index 61e65c792..ebbf32c01 100755
--- a/jjb/doctor/doctor-env-presetup.sh
+++ b/jjb/doctor/doctor-env-presetup.sh
@@ -42,6 +42,13 @@ elif [[ ${INSTALLER_TYPE} == 'daisy' ]]; then
echo "No available installer VM exists...exiting"
exit 1
fi
+
+elif [[ ${INSTALLER_TYPE} == 'fuel' ]]; then
+ if [[ ! "${BRANCH}" =~ "danube" ]]; then
+ export SSH_KEY=${SSH_KEY:-/var/lib/opnfv/mcp.rsa}
+ sudo cp ${SSH_KEY} ${installer_key_file}
+ sudo chown `whoami`:`whoami` ${installer_key_file}
+ fi
fi