Alon Bar-Lev has uploaded a new change for review.

Change subject: packaging: setup: allow overriding otopi location
......................................................................

packaging: setup: allow overriding otopi location

Change-Id: I6c72e5aa4b1ab3e0ca4022d413339b00945eccaf
Signed-off-by: Alon Bar-Lev <alo...@redhat.com>
---
M packaging/setup/bin/ovirt-engine-setup.env
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/22/16822/1

diff --git a/packaging/setup/bin/ovirt-engine-setup.env 
b/packaging/setup/bin/ovirt-engine-setup.env
index 82bd6c5..9057337 100644
--- a/packaging/setup/bin/ovirt-engine-setup.env
+++ b/packaging/setup/bin/ovirt-engine-setup.env
@@ -8,7 +8,9 @@
 scriptdir="$(dirname "${script}")"
 extraenv=""
 if [ -z "${OTOPI_SOURCES}" ]; then
-       if [ -x "${scriptdir}/otopi" ]; then
+       if [ -n "${OTOPI_PREFIX}" ]; then
+               otopidir="${OTOPI_PREFIX}/sbin"
+       elif [ -x "${scriptdir}/otopi" ]; then
                otopidir="${scriptdir}"
        else
                otopidir="/usr/sbin"


-- 
To view, visit http://gerrit.ovirt.org/16822
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6c72e5aa4b1ab3e0ca4022d413339b00945eccaf
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <alo...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to