summaryrefslogtreecommitdiffstats
path: root/patches/opnfv-fuel/0005-deploy-Allow-non-root-deploys.patch
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-08-01 21:24:22 +0200
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-08-01 21:25:31 +0200
commit3b9772e79d5794422533034540ef3620aaf46d6f (patch)
tree89e6bcafda6906aa8f914b807ed3d3b6bdf26939 /patches/opnfv-fuel/0005-deploy-Allow-non-root-deploys.patch
parentc5bfbf1f4bababbbf885414d0c6bdd9f01cae900 (diff)
p/fuel: ci/deploy.sh: Fix deploy without sudo
Previous rebase left out the "sudo" invocation for apt-get/yum calls. Change-Id: I97c9785dae88afae6c1aa8a2faf2e5a10f9451a6 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Diffstat (limited to 'patches/opnfv-fuel/0005-deploy-Allow-non-root-deploys.patch')
-rw-r--r--patches/opnfv-fuel/0005-deploy-Allow-non-root-deploys.patch19
1 files changed, 16 insertions, 3 deletions
diff --git a/patches/opnfv-fuel/0005-deploy-Allow-non-root-deploys.patch b/patches/opnfv-fuel/0005-deploy-Allow-non-root-deploys.patch
index 55613432..3b50079f 100644
--- a/patches/opnfv-fuel/0005-deploy-Allow-non-root-deploys.patch
+++ b/patches/opnfv-fuel/0005-deploy-Allow-non-root-deploys.patch
@@ -4,11 +4,11 @@ Subject: [PATCH] deploy: Allow non-root deploys
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
---
- ci/deploy.sh | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
+ ci/deploy.sh | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/ci/deploy.sh b/ci/deploy.sh
-index cf22d10..3d7ccf5 100755
+index aec8048..c1ec31b 100755
--- a/ci/deploy.sh
+++ b/ci/deploy.sh
@@ -87,7 +87,7 @@ $(notify "Disabled input parameters (not yet supported with MCP):" 3)
@@ -31,3 +31,16 @@ index cf22d10..3d7ccf5 100755
exit 1
fi
+@@ -269,10 +269,10 @@ pushd "${DEPLOY_DIR}" > /dev/null
+ # scenario, etc.
+
+ # Install required packages
+-[ -n "$(command -v apt-get)" ] && apt-get install -y \
++[ -n "$(command -v apt-get)" ] && sudo apt-get install -y \
+ git make rsync mkisofs curl virtinst cpu-checker qemu-kvm vgabios && \
+ ln -sf /usr/share/vgabios/vgabios.bin /usr/share/qemu/vgabios-stdvga.bin
+-[ -n "$(command -v yum)" ] && yum install -y \
++[ -n "$(command -v yum)" ] && sudo yum install -y \
+ git make rsync genisoimage curl virt-install qemu-kvm vgabios
+
+ # Check scenario file existence