summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Yang <yangyang1@zte.com.cn>2018-01-16 18:15:53 +0800
committerAlex Yang <yangyang1@zte.com.cn>2018-01-16 18:15:53 +0800
commit9ab9ac3fb8b93416c8b60a4440bda4f16187c00d (patch)
tree47ce6b00b8a5a634b2f8a3ac37506aab1efbbfbb
parent1591bb64f538e0a51ee2e80995d94443711edb99 (diff)
Create pod's dir if it didn't exist
Change-Id: I0c284ef830caa2eb0f52efbee0b23d9a70449efe Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
-rwxr-xr-xci/deploy/deploy.sh2
1 files changed, 2 insertions, 0 deletions
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