19 lines
596 B
Bash
19 lines
596 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# Lädt das offizielle Aufnahmeantrag-PDF in server/templates/
|
|
# Usage: ./scripts/fetch-template.sh [URL]
|
|
# Default URL: https://harheimertc.de/Aufnahmeantrag%202025.pdf
|
|
|
|
TEMPLATE_URL=${1:-"https://harheimertc.de/Aufnahmeantrag%202025.pdf"}
|
|
TEMPLATES_DIR="$(pwd)/server/templates"
|
|
mkdir -p "$TEMPLATES_DIR"
|
|
|
|
echo "Lade Template von: $TEMPLATE_URL"
|
|
curl -fL "$TEMPLATE_URL" -o "$TEMPLATES_DIR/Aufnahmeantrag 2025.pdf"
|
|
|
|
echo "Template gespeichert als: $TEMPLATES_DIR/Aufnahmeantrag 2025.pdf"
|
|
chmod 644 "$TEMPLATES_DIR/Aufnahmeantrag 2025.pdf"
|
|
|
|
echo "Fertig."
|