From cecb07ffac55ed186389557140f3b6f44806b0a4 Mon Sep 17 00:00:00 2001 From: Alex Yang Date: Wed, 22 Feb 2017 16:57:37 +0800 Subject: Add executable attribute to opnfv bin file 1. Add executable attribute to the build-output bin file 2. Determine whether the bin file exists and is excutable before deployment Change-Id: I95b43c9efacfbd47a5f570dac793c0a8d3fe9bbb Signed-off-by: Alex Yang --- ci/deploy/deploy.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ci/deploy/deploy.sh') diff --git a/ci/deploy/deploy.sh b/ci/deploy/deploy.sh index e68368a6..af044f42 100755 --- a/ci/deploy/deploy.sh +++ b/ci/deploy/deploy.sh @@ -179,6 +179,11 @@ if [ $DRY_RUN -eq 1 ]; then exit 1 fi +if [ ! -x ${WORKSPACE}/opnfv.bin ]; then + echo "opnfv.bin does not exist in WORKSPACE or is not executable, exit." + exit 1 +fi + test -d ${VM_STORAGE} || mkdir -p ${VM_STORAGE} function create_node -- cgit 1.2.3-korg