Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Commit

Permalink
DB connection correction
Browse files Browse the repository at this point in the history
  • Loading branch information
nijn authored Jan 18, 2017
1 parent dca91e2 commit c3fcb11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c3fcb11

Please sign in to comment.