scripts: tee vps-paragon-diagnostics output to var/vps-paragon-diagnostics-last.txt
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -13,14 +13,22 @@
|
|||||||
# FRACTURED_MYSQL — prefix to invoke mysql, e.g. 'mysql -uacore -h127.0.0.1' (password via ~/.my.cnf or -p)
|
# 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.
|
# 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_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: <repo>/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
|
set -u
|
||||||
|
|
||||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
REPO="${FRACTURED_REPO:-$(cd "$SCRIPT_DIR/.." && 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' "================================================================================"; }
|
hr() { printf '\n%s\n' "================================================================================"; }
|
||||||
sub() { printf '\n-- %s\n' "$1"; }
|
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 "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 "5) ONE sentence: exact in-game symptom."
|
||||||
echo "Done."
|
echo "Done."
|
||||||
|
echo ""
|
||||||
|
echo "Full transcript: $DIAG_OUT"
|
||||||
|
|||||||
Reference in New Issue
Block a user