Update early exit logic

pull/22750/head
Boris Polonsky 10 months ago
parent dfbdad5823
commit 968a8ca8b0

@ -5,12 +5,11 @@ set -e
if [[ "${MIGRATION_ENABLED}" == "true" ]]; then if [[ "${MIGRATION_ENABLED}" == "true" ]]; then
echo "Running migrations" echo "Running migrations"
flask upgrade-db flask upgrade-db
fi # Pure migration mode
if [[ "${MODE}" == "migration" ]]; then
# Pure migration mode
if [[ "${MODE}" == "migration" ]]; then
echo "Migration completed, exiting normally" echo "Migration completed, exiting normally"
exit 0 exit 0
fi
fi fi
if [[ "${MODE}" == "worker" ]]; then if [[ "${MODE}" == "worker" ]]; then

Loading…
Cancel
Save