Improve restore job ntfy timeout and output

This commit is contained in:
2026-05-07 11:34:50 +02:00
parent 008ab9bc4a
commit d7e1eb33ba
2 changed files with 8 additions and 0 deletions
@@ -15,9 +15,15 @@ REPORT_FILE="$REPORT_ROOT/${MODE}-$(date +%F).md"
mkdir -p "$REPORT_ROOT"
echo "Running restore job: $MODE"
echo "Report target: $REPORT_FILE"
if "$SCRIPT_DIR/run-restore-checks.sh" "$MODE" > "$REPORT_FILE"; then
echo "Restore job succeeded, sending ntfy..."
"$SCRIPT_DIR/send-ntfy.sh" "$TOPIC" "Restore job ok: $MODE" "Restore job succeeded. Report: $REPORT_FILE" default || true
echo "Done"
else
echo "Restore job failed, sending ntfy..."
"$SCRIPT_DIR/send-ntfy.sh" "$TOPIC" "Restore job failed: $MODE" "Restore job failed. Report: $REPORT_FILE" high || true
exit 1
fi
+2
View File
@@ -14,6 +14,8 @@ fi
NTFY_URL="${NTFY_URL:-https://ntfy.kaleschke.info}"
curl -fsS \
--connect-timeout 5 \
--max-time 10 \
-H "Title: $TITLE" \
-H "Priority: $PRIORITY" \
-d "$MESSAGE" \