#!/usr/bin/env bash set -euo pipefail cp -n cotisations/templates/cotisations/invoice.html templates/default_invoice.html cp -n cotisations/templates/cotisations/voucher.html templates/default_voucher.html AUTOMIGRATE=${AUTOMIGRATE:-yes} if [ "$AUTOMIGRATE" != "skip" ]; then poetry run python manage.py migrate --noinput fi poetry run python manage.py collectstatic -c --noinput poetry run python manage.py compilemessages cat <