From 90c8db0b047cce2628b0a92fa3ea5f4c75c5efc5 Mon Sep 17 00:00:00 2001 From: Docker Build Date: Sun, 10 May 2026 15:57:54 -0500 Subject: [PATCH] scripts: tee vps-paragon-diagnostics output to var/vps-paragon-diagnostics-last.txt Co-authored-by: Cursor --- scripts/vps-paragon-diagnostics.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/scripts/vps-paragon-diagnostics.sh b/scripts/vps-paragon-diagnostics.sh index a96256d..0f95c7c 100755 --- a/scripts/vps-paragon-diagnostics.sh +++ b/scripts/vps-paragon-diagnostics.sh @@ -13,14 +13,22 @@ # FRACTURED_MYSQL — prefix to invoke mysql, e.g. 'mysql -uacore -h127.0.0.1' (password via ~/.my.cnf or -p) # If unset, SQL blocks are printed for manual copy-paste only. # FRACTURED_SPELL_IDS — space-separated spell IDs for spell_dbc spot-check (defaults to common DK rune spenders) +# FRACTURED_DIAG_OUTPUT — full log file path (default: /var/vps-paragon-diagnostics-last.txt) # -# Paste the full script output to your maintainer (redact any paths/passwords you consider sensitive). +# All output is mirrored to the log file (tee) while still printing to the terminal. +# Default path lives under var/ (gitignored in this repo). Open that file in Cursor, +# scp it down, or: git add -f var/vps-paragon-diagnostics-last.txt if you intend to commit it. set -u SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" REPO="${FRACTURED_REPO:-$(cd "$SCRIPT_DIR/.." && pwd)}" +DIAG_OUT="${FRACTURED_DIAG_OUTPUT:-$REPO/var/vps-paragon-diagnostics-last.txt}" +mkdir -p "$(dirname "$DIAG_OUT")" +exec > >(tee "$DIAG_OUT") 2>&1 +echo "Logging to: $DIAG_OUT" + hr() { printf '\n%s\n' "================================================================================"; } sub() { printf '\n-- %s\n' "$1"; } @@ -323,3 +331,5 @@ echo "3) Paste 2A path strings + 2D listings (or MISSING lines)." echo "4) From dev: same 1D sha256 of worldserver OR same SQL block — proves binary/data parity." echo "5) ONE sentence: exact in-game symptom." echo "Done." +echo "" +echo "Full transcript: $DIAG_OUT"