osiris/deploy/send-reminders.sh

17 lines
425 B
Bash
Executable File

#!/usr/bin/env bash
# Wrapper for the reminder cron job. Cron runs with almost no environment, so the
# settings (and the VAPID keys) have to be loaded explicitly.
set -euo pipefail
PROJECT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$PROJECT_DIR"
if [ -f .env ]; then
set -a
# shellcheck disable=SC1091
. ./.env
set +a
fi
exec "${UV:-uv}" run --no-sync python manage.py send_reminders "$@"