summaryrefslogtreecommitdiffstats
path: root/jjb/infra
diff options
context:
space:
mode:
authorYolanda Robla Mota <yroblamo@redhat.com>2016-11-02 10:35:21 +0100
committerYolanda Robla Mota <yroblamo@redhat.com>2016-11-02 10:36:00 +0100
commite33497bab7a79b0d46a085447f4a1d10f3060849 (patch)
tree03a1bfb999b1d7a58d52b0456845d00878fbc971 /jjb/infra
parentf43a32272492ded0480adc034062070f7ee1cfa3 (diff)
Fix perms and sed for bridge_name
Change-Id: I0b2b6e31a456398958bf1997ed6f6394322191c8 Signed-Off-By: Yolanda Robla <yroblamo@redhat.com>
Diffstat (limited to 'jjb/infra')
-rwxr-xr-xjjb/infra/bifrost-verify.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/jjb/infra/bifrost-verify.sh b/jjb/infra/bifrost-verify.sh
index a782904be..ded4ed463 100755
--- a/jjb/infra/bifrost-verify.sh
+++ b/jjb/infra/bifrost-verify.sh
@@ -47,11 +47,11 @@ sudo git fetch $PROJECT_REPO $GERRIT_REFSPEC && sudo git checkout FETCH_HEAD
sudo /bin/cp -rf /opt/releng/prototypes/bifrost/* /opt/bifrost/
# place bridge creation file on the right path
-mkdir -p /opt/puppet-infracloud/files/elements/infra-cloud-bridge/static/opt
-cp /opt/puppet-infracloud/templates/bifrost/create_bridge.py.erb /opt/puppet-infracloud/files/elements/infra-cloud-bridge/static/opt/create_bridge.py
+sudo mkdir -p /opt/puppet-infracloud/files/elements/infra-cloud-bridge/static/opt
+sudo cp /opt/puppet-infracloud/templates/bifrost/create_bridge.py.erb /opt/puppet-infracloud/files/elements/infra-cloud-bridge/static/opt/create_bridge.py
# replace bridge name
-sed -i .bak s/<%= @bridge_name -%>/br_opnfv/g /opt/puppet-infracloud/files/elements/infra-cloud-bridge/static/opt/create_bridge.py
+sudo sed -i s/"<%= @bridge_name -%>"/br_opnfv/g /opt/puppet-infracloud/files/elements/infra-cloud-bridge/static/opt/create_bridge.py
# cleanup remnants of previous deployment
cd /opt/bifrost