Fix a typo bug.

Checking for the wrong database URL caused the mailman core to always use an
sqlite database even when another database is defined. This commit fixes that.
This commit is contained in:
Abhilash Raj
2017-04-18 08:25:23 -07:00
parent e24bef5d0c
commit c4c9929213

View File

@@ -33,7 +33,7 @@ function wait_for_postgres () {
#
# TODO: Check the database type and detect if it is up based on that. For now,
# assume that postgres is being used if DATABASE_URL is defined.
if [[ ! -v DATABASES_URL ]]; then
if [[ ! -v DATABASE_URL ]]; then
echo "DATABASE_URL is not defined. Using sqlite database..."
export DATABASE_URL=sqlite:///mailman.db
export DATABASE_TYPE='sqlite'