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

Change subject: core: support overriding environment
......................................................................

core: support overriding environment

Useful for distro settings.

Change-Id: Ib619c87ac41374ef5007beb3d6de068fcfeb3ff5
Signed-off-by: Alon Bar-Lev <alo...@redhat.com>
---
M src/bin/otopi
1 file changed, 5 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/otopi refs/changes/16/13316/1

diff --git a/src/bin/otopi b/src/bin/otopi
index d68d161..83bc339 100755
--- a/src/bin/otopi
+++ b/src/bin/otopi
@@ -38,6 +38,11 @@
        done
 }
 
+ENV="/etc/otopi.env.d"
+for f in $([ -d "${ENV}" ] && find "${ENV}" -name '*.conf' | sort); do
+       [ -r "${f}" ] && . "${f}"
+done
+
 script="$0"
 
 if [ -z "${OTOPI_NONROOT}" -a "$(id -u)" != 0 ]; then


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib619c87ac41374ef5007beb3d6de068fcfeb3ff5
Gerrit-PatchSet: 1
Gerrit-Project: otopi
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