#!/bin/sh

set -eu


if "${UV}" run --no-dev manage.py shell -c \
    'from django.db import connection; connection.ensure_connection()'; then
    exit 0
fi

echo "Rekono cannot connect to its database." >&2
exit 1
