#!/bin/sh
set -eu

mkdir -p "$(dirname "${POBSYNC_SQLITE_PATH:-/var/lib/pobsync/pobsync.sqlite3}")"

python manage.py migrate --noinput

exec "$@"
