This commit is contained in:
team3
2026-09-07 16:28:09 +02:00
parent a0fc4f646d
commit e881a00a5d
4 changed files with 162 additions and 84 deletions

11
ticket-daten Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
# Usage: ticket-daten <ticket-nr>
# Holt die Redmine-Daten neu und ueberschreibt /tmp/redmine-<nr>/data.json
TICKET_NR="$1"
DIR="/home/arbeit/projects/project-starter"
[ -z "$TICKET_NR" ] && { echo "Ticket-Nr fehlt."; exit 1; }
DATA=$("$DIR/redmine-fetch" "$TICKET_NR") || exit 1
printf '%s' "$DATA" > "/tmp/redmine-$TICKET_NR/data.json"
echo "Ticketdaten aktualisiert: /tmp/redmine-$TICKET_NR/data.json"