summaryrefslogtreecommitdiffstats
path: root/ci/02-deploybundle.sh
diff options
context:
space:
mode:
authornarindergupta <narinder.gupta@canonical.com>2016-08-22 15:01:20 -0400
committernarindergupta <narinder.gupta@canonical.com>2016-08-22 15:04:51 -0400
commite6f1836f6e7d344b69bacd4a57fec354b51a7888 (patch)
tree793052806d67420caef87bbefb71440466bb5382 /ci/02-deploybundle.sh
parent318c3e5aa6c0c78fca0fdeaf2533f14ffb9adc99 (diff)
modfied to cleanup copying of yaml files from .juju/
Change-Id: I1c44815b9b4217033034faf4a2880f5737f81fad Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci/02-deploybundle.sh')
-rwxr-xr-xci/02-deploybundle.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/ci/02-deploybundle.sh b/ci/02-deploybundle.sh
index 8a0502d9..9242ebba 100755
--- a/ci/02-deploybundle.sh
+++ b/ci/02-deploybundle.sh
@@ -42,11 +42,9 @@ check_status() {
}
#read the value from deployment.yaml
-if [ -e ~/.juju/deployment.yaml ]; then
- cp ~/.juju/deployment.yaml ./deployment.yaml
- if [ -e ~/.juju/deployconfig.yaml ]; then
- cp ~/.juju/deployconfig.yaml ./deployconfig.yaml
- cp ~/.juju/labconfig.yaml ./labconfig.yaml
+
+if [ -e ./deployment.yaml ]; then
+ if [ -e ./deployconfig.yaml ]; then
extport=`grep "ext-port" deployconfig.yaml | cut -d ' ' -f 4 | sed -e 's/ //' | tr ',' ' '`
datanet=`grep "dataNetwork" deployconfig.yaml | cut -d ' ' -f 4 | sed -e 's/ //'`
admnet=`grep "admNetwork" deployconfig.yaml | cut -d ' ' -f 4 | sed -e 's/ //'`