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

Commit

Permalink
Merge pull request #1 from nijn/patch-1
Browse files Browse the repository at this point in the history
DB connection correction
  • Loading branch information
lukasmartinelli authored Jan 18, 2017
2 parents dca91e2 + c3fcb11 commit 81eaa8e
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 81eaa8e

Please sign in to comment.