ops: make freshness negative ntfy call robust

This commit is contained in:
2026-06-06 13:03:05 +02:00
parent c33e29016b
commit 6123584a02
@@ -52,7 +52,7 @@ critical_count="${critical_count:-0}"
if [ "$rc" -ne 0 ] && [ "$critical_count" -gt 0 ]; then
if [ "$SEND_NTFY" = "1" ]; then
"$SCRIPT_DIR/send-ntfy.sh" \
bash "$SCRIPT_DIR/send-ntfy.sh" \
"$ALERT_TOPIC" \
"TEST: Restore freshness alert path ok" \
"Negativtest erfolgreich: check-restore-freshness.sh meldete ${critical_count} Criticals gegen synthetischen leeren Testpfad. Produktive Dumps wurden nicht veraendert. Report: $report_file" \
@@ -63,7 +63,7 @@ if [ "$rc" -ne 0 ] && [ "$critical_count" -gt 0 ]; then
fi
if [ "$SEND_NTFY" = "1" ]; then
"$SCRIPT_DIR/send-ntfy.sh" \
bash "$SCRIPT_DIR/send-ntfy.sh" \
"$ALERT_TOPIC" \
"TEST FAILED: Restore freshness alert path" \
"Negativtest fehlgeschlagen: erwarteter Critical-Zustand wurde nicht erkannt. Report: $report_file" \