From c3fcb112262e03755c388adc0a23a6c9fc3ab391 Mon Sep 17 00:00:00 2001 From: nijn Date: Tue, 17 Jan 2017 22:14:47 -0700 Subject: [PATCH] DB connection correction --- utils.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils.sh b/utils.sh index cc65489..f710a49 100755 --- a/utils.sh +++ b/utils.sh @@ -21,8 +21,8 @@ function cleanup_dest_project() { function replace_db_connection() { local replace_expr_1="s|host: .*|host: \"$POSTGRES_HOST\"|g" local replace_expr_2="s|port: .*|port: \"5432\"|g" - local replace_expr_3="s|dbname: .*|dbname: \"$POSTGRES_USER\"|g" - local replace_expr_4="s|user: .*|user: \"$POSTGRES_DB\"|g" + local replace_expr_3="s|dbname: .*|dbname: \"$POSTGRES_DB\"|g" + local replace_expr_4="s|user: .*|user: \"$POSTGRES_USER\"|g" local replace_expr_5="s|password: .*|password: \"$POSTGRES_PASSWORD\"|g" sed -i "$replace_expr_1" "$DEST_PROJECT_FILE"