Module: kamailio
Branch: master
Commit: 17f907d5fa1267f434f422fb61e4b315e3eafb97
URL:
https://github.com/kamailio/kamailio/commit/17f907d5fa1267f434f422fb61e4b31…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-06-30T08:38:11+02:00
kamctl: kamdbctl - proper use of DBPORT for postgres
---
Modified: utils/kamctl/kamdbctl.pgsql
---
Diff:
https://github.com/kamailio/kamailio/commit/17f907d5fa1267f434f422fb61e4b31…
Patch:
https://github.com/kamailio/kamailio/commit/17f907d5fa1267f434f422fb61e4b31…
---
diff --git a/utils/kamctl/kamdbctl.pgsql b/utils/kamctl/kamdbctl.pgsql
index a946f2a204..059b6faa82 100644
--- a/utils/kamctl/kamdbctl.pgsql
+++ b/utils/kamctl/kamdbctl.pgsql
@@ -55,8 +55,8 @@ if [ -z "$DBPORT" ] ; then
CMD="psql -q -h $DBHOST -U $DBROOTUSER "
DUMP_CMD="pg_dump -h $DBHOST -U $DBROOTUSER -c"
else
- CMD="psql -q -h $DBHOST -p $DBHOST -U $DBROOTUSER "
- DUMP_CMD="pg_dump -h $DBHOST -p $DBHOST -U $DBROOTUSER -c"
+ CMD="psql -q -h $DBHOST -p $DBPORT -U $DBROOTUSER "
+ DUMP_CMD="pg_dump -h $DBHOST -p $DBPORT -U $DBROOTUSER -c"
fi
#################################################################