15 lines
424 B
Bash
Executable File
15 lines
424 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
BASE="/var/lib/dmarc"
|
|
TODAY_DIR="$BASE/reports/$(date -u +%Y/%m/%d)"
|
|
OUTDIR="$BASE/exports"
|
|
CSV="$OUTDIR/records.csv"
|
|
LOGF="$BASE/logs/scan-$(date -u +%F).log"
|
|
|
|
mkdir -p "$OUTDIR"
|
|
|
|
if [[ -d "$TODAY_DIR" ]]; then
|
|
/usr/local/bin/dmarc-scan.sh "$TODAY_DIR" --domain fluechtlingsrat-brandenburg.de --csv "$CSV" --append --top 25 --outdir "$OUTDIR" >> "$LOGF" 2>&1
|
|
fi
|