Module: kamailio Branch: master Commit: 8a724a70859f68431094acab2a8f9ce000bbd89b URL: https://github.com/kamailio/kamailio/commit/8a724a70859f68431094acab2a8f9ce0...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@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/8a724a70859f68431094acab2a8f9ce0... Patch: https://github.com/kamailio/kamailio/commit/8a724a70859f68431094acab2a8f9ce0...
---
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