Yedidyah Bar David has uploaded a new change for review.

Change subject: packaging: engine-backup: Suggest --help on failure
......................................................................

packaging: engine-backup: Suggest --help on failure

Also added to --help a link to the wiki page.

Bug-Url: https://bugzilla.redhat.com/1064903
Change-Id: I6021095d229df8279f5b593f2a6619867d4fcc99
Signed-off-by: Yedidyah Bar David <[email protected]>
---
M packaging/bin/engine-backup.sh
1 file changed, 5 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/67/24567/1

diff --git a/packaging/bin/engine-backup.sh b/packaging/bin/engine-backup.sh
index 18dd4d9..86a33e0 100755
--- a/packaging/bin/engine-backup.sh
+++ b/packaging/bin/engine-backup.sh
@@ -74,6 +74,10 @@
  OVIRT_ENGINE_DATABASE_PASSWORD
      Database password as if provided by --db-password=pass option.
 
+ Wiki
+
+ See http://www.ovirt.org/Ovirt-engine-backup for more info.
+
  To create a new user/database:
 
  create role <user> with login encrypted password '<password>';
@@ -324,7 +328,7 @@
                -d "${ENGINE_DB_DATABASE}" \
                -c "select 1" \
                >> "${LOG}" 2>&1 \
-               || logdie "Can't connect to the database"
+               || logdie "Can't connect to the database. Please see '${0} 
--help'."
 
        PGPASSFILE="${MYPGPASS}" pg_dump \
                -U "${ENGINE_DB_USER}" \


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

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

Reply via email to