fix path of SQLITE_URL for Django (postorius + web docker-image)

Startup of images using SQLite database fails as of non-existent database file.
Fix this by using the proper syntax [1] to have the database created at /opt/mailman-web-data/mailmanweb.db

1 - https://github.com/joke2k/django-environ/issues/187#issuecomment-400577114

Signed-off-by: Sven Roederer <sven@geroedel.de>
This commit is contained in:
Sven Roederer
2022-04-01 00:22:24 +02:00
parent 420d47e88e
commit 3a6de9ff76
2 changed files with 2 additions and 2 deletions

View File

@@ -77,7 +77,7 @@ fi
if [[ ! -v DATABASE_URL ]]; then
echo "DATABASE_URL is not defined. Using sqlite database..."
export DATABASE_URL=sqlite://mailmanweb.db
export DATABASE_URL=sqlite:////opt/mail-web-data/mailmanweb.db
export DATABASE_TYPE='sqlite'
fi