Module: kamailio
Branch: 5.0
Commit: 8cdee50d7c89c1617b68e2eff1ce646eba0c33fb
URL:
https://github.com/kamailio/kamailio/commit/8cdee50d7c89c1617b68e2eff1ce646…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-06-30T08:39:23+02:00
kamctl: kamdbctl - proper use of DBPORT for postgres
(cherry picked from commit 17f907d5fa1267f434f422fb61e4b315e3eafb97)
---
Modified: utils/kamctl/kamdbctl.pgsql
---
Diff:
https://github.com/kamailio/kamailio/commit/8cdee50d7c89c1617b68e2eff1ce646…
Patch:
https://github.com/kamailio/kamailio/commit/8cdee50d7c89c1617b68e2eff1ce646…
---
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
#################################################################