Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Apply migrations by default when DJANGO_PERFORM_MIGRATIONS is unset

Roland Geidere9215130d37c
diff --git a/extras/docker/production/entrypoint.sh b/extras/docker/production/entrypoint.sh
index 764d90245..0cf077800 100644
--- a/extras/docker/production/entrypoint.sh
+++ b/extras/docker/production/entrypoint.sh
@@ -36,7 +36,7 @@ then
fi
# Perform database migrations
-if [[ "$DJANGO_PERFORM_MIGRATIONS" == "True" ]];
+if [[ "${DJANGO_PERFORM_MIGRATIONS:-True}" == "True" ]];
then
echo "Performing database migrations"
if ! python3 manage.py migrate; then