summaryrefslogtreecommitdiffstats
path: root/ci/01-deploybundle.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/01-deploybundle.sh')
-rwxr-xr-xci/01-deploybundle.sh16
1 files changed, 12 insertions, 4 deletions
diff --git a/ci/01-deploybundle.sh b/ci/01-deploybundle.sh
index 6640ef0a..2d6dc52c 100755
--- a/ci/01-deploybundle.sh
+++ b/ci/01-deploybundle.sh
@@ -7,8 +7,8 @@ set -ex
#copy and download charms
cp $4/fetch-charms.sh ./fetch-charms.sh
#modify the ubuntu series wants to deploy
- sed -i -- "s|trusty|$6|g" ./fetch-charms.sh
- sh ./fetch-charms.sh
+ sed -i -- "s|distro=trusty|distro=$6|g" ./fetch-charms.sh
+ sh ./fetch-charms.sh $6
case "$1" in
@@ -31,8 +31,16 @@ esac
#changing the target to the openstack release we want to deploy.
sed -i -- "s|mitaka|$2|g" ./bundles.yaml
-#changing the target to the ubuntu distro we want to deploy.
-sed -i -- "s|trusty|$6|g" ./bundles.yaml
+#update source if trusty is target distribution
+case "$6" in
+ 'trusty' )
+ sed -i -- "s|#source|source|g" ./bundles.yaml
+ ;;
+ 'xenial' )
+ #changing the target to the ubuntu distro we want to deploy.
+ sed -i -- "s|trusty|$6|g" ./bundles.yaml
+ ;;
+esac
case "$3" in
'orangepod1' )