Commit 1269291f authored by Thiago Linhares's avatar Thiago Linhares Committed by Shinya Maeda
Browse files

fix: no auto_database_url when postgres disabled

parent 5fbb8b18
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -155,7 +155,9 @@ function persist_environment_url() {

function auto_database_url() {
  local auto_database_url
  if [[ "$POSTGRES_ENABLED" == "true" ]]; then
    auto_database_url="postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRESQL_RELEASE_NAME}:5432/${POSTGRES_DB}"
  fi

  echo "${DATABASE_URL-$auto_database_url}"
}