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:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user