[sr-dev] git:master:8a724a70: kamdbctl: more error help for missing .pgpass file

Daniel-Constantin Mierla miconda at gmail.com
Mon Jun 13 14:48:57 CEST 2016


Module: kamailio
Branch: master
Commit: 8a724a70859f68431094acab2a8f9ce000bbd89b
URL: https://github.com/kamailio/kamailio/commit/8a724a70859f68431094acab2a8f9ce000bbd89b

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-06-13T12:50:04+02:00

kamdbctl: more error help for missing .pgpass file

---

Modified: utils/kamctl/kamdbctl.pgsql

---

Diff:  https://github.com/kamailio/kamailio/commit/8a724a70859f68431094acab2a8f9ce000bbd89b.diff
Patch: https://github.com/kamailio/kamailio/commit/8a724a70859f68431094acab2a8f9ce000bbd89b.patch

---

diff --git a/utils/kamctl/kamdbctl.pgsql b/utils/kamctl/kamdbctl.pgsql
index d6452ba..cf3309c 100644
--- a/utils/kamctl/kamdbctl.pgsql
+++ b/utils/kamctl/kamdbctl.pgsql
@@ -43,8 +43,10 @@ fi
 if [ -z "$DBROOTUSER" ]; then
 	DBROOTUSER="postgres"
 	if [ ! -r ~/.pgpass ]; then
-		merr "~/.pgpass does not exist, please create this file and support proper credentials for user postgres."
+		merr "~/.pgpass does not exist"
+		merr "create this file and add proper credentials for user postgres"
 		merr "Note: you need at least postgresql>= 7.3"
+		merr "Hint: .pgpass hostname must match DBHOST"
 		exit 1
 	fi
 fi




More information about the sr-dev mailing list