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

Change subject: db: allow overriding PGPASSFILE using ENGINE_PASSFILE
......................................................................

db: allow overriding PGPASSFILE using ENGINE_PASSFILE

Having hard coded locations is not good for installation phase.

Change-Id: I89e12fb7cdcd97cb46738aa24a73d0b4fd8b5f01
Signed-off-by: Alon Bar-Lev <[email protected]>
---
M backend/manager/dbscripts/dbcustomfunctions.sh
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/88/12988/1

diff --git a/backend/manager/dbscripts/dbcustomfunctions.sh 
b/backend/manager/dbscripts/dbcustomfunctions.sh
index 7f58e2f..181f162 100755
--- a/backend/manager/dbscripts/dbcustomfunctions.sh
+++ b/backend/manager/dbscripts/dbcustomfunctions.sh
@@ -21,7 +21,7 @@
     # When running in development environments the .pgpass file may not
     # exist or might not be readable, so we should try to use the file
     # stored in the home directory of the user instead:
-    PGPASSFILE="/etc/ovirt-engine/.pgpass"
+    PGPASSFILE="${ENGINE_PGPASS:-/etc/ovirt-engine/.pgpass}"
     if [ ! -r "${PGPASSFILE}" ]
     then
         PGPASSFILE="${HOME}/.pgpass"


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I89e12fb7cdcd97cb46738aa24a73d0b4fd8b5f01
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to