Eli Mesika has uploaded a new change for review.

Change subject: core: adding missing file for fkvalidator
......................................................................

core: adding missing file for fkvalidator

This file was missing when committing the fkvalidaor move from dbscripts
to dbutils.

Change-Id: Id30fd1437d479049ab3cfc55e3f87e2d5af56f9e
Signed-off-by: Eli Mesika <emes...@redhat.com>
---
A backend/manager/tools/dbutils/common.sh
1 file changed, 22 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/25/12225/1

diff --git a/backend/manager/tools/dbutils/common.sh 
b/backend/manager/tools/dbutils/common.sh
new file mode 100755
index 0000000..b5fe298
--- /dev/null
+++ b/backend/manager/tools/dbutils/common.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+set_defaults() {
+    ME=$(basename $0)
+    SERVERNAME="localhost"
+    PORT="5432"
+    DATABASE="engine"
+    USERNAME=""
+    VERBOSE=false
+    LOGFILE="$ME.log"
+
+    # 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"
+    if [ ! -r "${PGPASSFILE}" ]
+    then
+        PGPASSFILE="${HOME}/.pgpass"
+    fi
+    export PGPASSFILE
+}
+


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id30fd1437d479049ab3cfc55e3f87e2d5af56f9e
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Eli Mesika <emes...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to