docker entrypoint: fixed automigration message

This commit is contained in:
Jenny Danzmayr 2023-12-01 17:06:50 +01:00
parent a3bac07a23
commit f5e3aeb15a

View file

@ -10,8 +10,8 @@ export WEB_CONCURRENCY="${WEB_CONCURRENCY:-$UWSGI_WORKERS}"
automigrate() {
AUTOMIGRATE="${C3NAV_AUTOMIGRATE:no}"
echo "Running migrations as automigrate is enabled. Set \"C3NAV_AUTOMIGRATE\" to \"no\" or \"false\" to disable."
if [[ "$AUTOMIGRATE" == "yes" || "$AUTOMIGRATE" == "true" ]]; then
echo "Running migrations as automigrate is enabled. Set \"C3NAV_AUTOMIGRATE\" to \"no\" or \"false\" to disable."
python manage.py migrate
fi
}