docker entrypoint: fixed automigration message
This commit is contained in:
parent
a3bac07a23
commit
f5e3aeb15a
1 changed files with 1 additions and 1 deletions
|
@ -10,8 +10,8 @@ export WEB_CONCURRENCY="${WEB_CONCURRENCY:-$UWSGI_WORKERS}"
|
||||||
|
|
||||||
automigrate() {
|
automigrate() {
|
||||||
AUTOMIGRATE="${C3NAV_AUTOMIGRATE:no}"
|
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
|
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
|
python manage.py migrate
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue