Update pve RustDesk GA sync scripts

This commit is contained in:
alexveley
2026-06-26 01:00:02 -04:00
parent cc77c09d34
commit 10233bd109
2 changed files with 130 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
#!/bin/bash
# One-shot: download Blair host health collector and run it. Run as root on pve.
set -euo pipefail
BASE_URL="${BLAIR_HEALTH_BASE_URL:-https://git.easygoingaming.com/Davoguha/blair-pve-sync-temp/raw/main}"
TARGET='/usr/local/sbin/collect-blair-host-health.sh'
SHARE_COPY='/tank/blair-share/tools/golden/host/collect-blair-host-health.sh'
echo "=== Download host health collector ==="
curl -fsSL "$BASE_URL/collect-blair-host-health.sh" -o "$TARGET"
chmod +x "$TARGET"
sed -i 's/\r$//' "$TARGET" 2>/dev/null || true
mkdir -p "$(dirname "$SHARE_COPY")" /tank/blair-share/fleet/diagnostics
cp -f "$TARGET" "$SHARE_COPY"
chmod +x "$SHARE_COPY"
echo "=== Run collection (output also on stdout) ==="
"$TARGET"
echo ""
echo "=== Report path (copy to Alex) ==="
ls -1t /tank/blair-share/fleet/diagnostics/host-health-*.txt 2>/dev/null | head -1 || true
echo "=== done ==="