Specify POSTGRESQL_SERVER_PORT for new databases (#170)

This commit is contained in:
leo-lb 2019-07-12 11:15:37 +02:00 committed by Alexey Golubev
parent 87aa987e36
commit 93a69e601d

View file

@ -223,7 +223,7 @@ create_postgresql_db(){
} }
create_postgresql_tbl(){ create_postgresql_tbl(){
CONNECTION_PARAMS="-h${POSTGRESQL_SERVER_HOST} -U${POSTGRESQL_SERVER_USER} -w" CONNECTION_PARAMS="-h${POSTGRESQL_SERVER_HOST} -p${POSTGRESQL_SERVER_PORT} -U${POSTGRESQL_SERVER_USER} -w"
if [ -n "${POSTGRESQL_SERVER_PASS}" ]; then if [ -n "${POSTGRESQL_SERVER_PASS}" ]; then
export PGPASSWORD=${POSTGRESQL_SERVER_PASS} export PGPASSWORD=${POSTGRESQL_SERVER_PASS}
fi fi