#!/usr/bin/env bash
# aria-radar-fetch.sh — Sprint B systemd-entrypoint
# Sourced .env, ruft Python-Orchestrator. Logs nach journalctl.

set -euo pipefail

ARIA_HOME="${ARIA_HOME:-/root/aria}"

if [ -f "$ARIA_HOME/.env" ]; then
  set -a
  # shellcheck disable=SC1091
  source "$ARIA_HOME/.env"
  set +a
fi

cd "$ARIA_HOME/scripts/ai-radar"
exec python3 -u aria-radar-fetch.py "$@"
