Skip to content

Commit 83141fc

Browse files
author
Kristan Kenney
authored
Merge pull request hestiacp#1081 from hestiacp/fix/1068_port_value_issue
hestiacp#1068 Fixes issue described in report
2 parents 59a3bee + 7b222c3 commit 83141fc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

func/db.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ database_set_default_ports() {
2828

2929
# MySQL
3030
mysql_connect() {
31+
unset PORT
3132
host_str=$(grep "HOST='$1'" $HESTIA/conf/mysql.conf)
3233
parse_object_kv_list "$host_str"
3334
if [ -z $PORT ]; then PORT=3306; fi
@@ -100,6 +101,7 @@ mysql_dump() {
100101

101102
# PostgreSQL
102103
psql_connect() {
104+
unset PORT
103105
host_str=$(grep "HOST='$1'" $HESTIA/conf/pgsql.conf)
104106
parse_object_kv_list "$host_str"
105107
export PGPASSWORD="$PASSWORD"

0 commit comments

Comments
 (0)