From: Alex Yang Date: Tue, 16 Jan 2018 10:15:53 +0000 (+0800) Subject: Create pod's dir if it didn't exist X-Git-Tag: opnfv-6.0.0~17 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F81%2F50681%2F1;p=daisy.git Create pod's dir if it didn't exist Change-Id: I0c284ef830caa2eb0f52efbee0b23d9a70449efe Signed-off-by: Alex Yang --- diff --git a/ci/deploy/deploy.sh b/ci/deploy/deploy.sh index c508e471..7d749af9 100755 --- a/ci/deploy/deploy.sh +++ b/ci/deploy/deploy.sh @@ -211,6 +211,7 @@ function update_dha_by_pdf() rm $tmpfile return fi + test -d $(dirname ${DHA_CONF}) || mkdir -p $(dirname ${DHA_CONF}) cp ${tmpfile} ${DHA_CONF} echo "====== Update deploy.yml from POD Descriptor File ======" @@ -219,6 +220,7 @@ function update_dha_by_pdf() echo "Cannot generate network configuration from PDF and IDF!" return fi + test -d $(dirname ${NETWORK_CONF}) || mkdir -p $(dirname ${NETWORK_CONF}) cp ${tmpfile} ${NETWORK_CONF} echo "====== Update $(basename ${NETWORK_CONF}) from POD Descriptor File ======" rm -f $tmpfile