Skip to content

Commit 54062bf

Browse files
author
Kristan Kenney
committed
Fix if statement for PostgreSQL
1 parent dd485b7 commit 54062bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

func/db.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ psql_connect() {
103103
host_str=$(grep "HOST='$1'" $HESTIA/conf/pgsql.conf)
104104
parse_object_kv_list "$host_str"
105105
export PGPASSWORD="$PASSWORD"
106-
if [ -z $PORT ]; then $PORT="5432"; fi
106+
if [ -z $PORT ]; then PORT=5432; fi
107107
if [ -z $HOST ] || [ -z $USER ] || [ -z $PASSWORD ] || [ -z $TPL ]; then
108108
echo "Error: postgresql config parsing failed"
109109
log_event "$E_PARSING" "$ARGUMENTS"

0 commit comments

Comments
 (0)