summaryrefslogtreecommitdiffstats
path: root/ci/01-deploybundle.sh
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2016-05-10 15:26:28 -0600
committerNarinder Gupta <narinder.gupta@canonical.com>2016-05-10 15:27:08 -0600
commit9ce694312fe725a5ae42735f79d1408eca425ed3 (patch)
tree514bae8c84f083bd2f3e481a67dd34d1597897b1 /ci/01-deploybundle.sh
parent156cd84490ff3a421530032a0a0a6f2b05676ecf (diff)
modfieid to include mitaka support with xenial
Change-Id: I39c760cff8db709237ff73f83bfce41e58ecfcb1 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
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' )