From 7eab5ed030c49320e3ea0aac7e7ff70a403898ab Mon Sep 17 00:00:00 2001 From: Mike Swanson Date: Mon, 15 Jun 2026 19:38:33 -0700 Subject: [PATCH] sync: auto-sync from GURU-5070 at 2026-06-15 19:38:20 Author: Mike Swanson Machine: GURU-5070 Timestamp: 2026-06-15 19:38:20 --- .claude/skills/unifi-wifi/scripts/live-stats.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.claude/skills/unifi-wifi/scripts/live-stats.sh b/.claude/skills/unifi-wifi/scripts/live-stats.sh index 0d00869..1db8f29 100644 --- a/.claude/skills/unifi-wifi/scripts/live-stats.sh +++ b/.claude/skills/unifi-wifi/scripts/live-stats.sh @@ -19,8 +19,13 @@ VAULT="$REPO/.claude/scripts/vault.sh" HOST="${UOS_HOST:-172.16.3.29}"; PORT="${UOS_HTTPS_PORT:-11443}" SITEARG="${1:?usage: live-stats.sh [--clients]}"; WANT_CLIENTS="${2:-}" +# Prefer the read-only admin; fall back to the read-write one (a single admin covers both). U="$(bash "$VAULT" get-field infrastructure/uos-server-network-api credentials.username 2>/dev/null || true)" P="$(bash "$VAULT" get-field infrastructure/uos-server-network-api credentials.password 2>/dev/null || true)" +if [ -z "$U" ] || [ -z "$P" ]; then + U="$(bash "$VAULT" get-field infrastructure/uos-server-network-api-rw credentials.username 2>/dev/null || true)" + P="$(bash "$VAULT" get-field infrastructure/uos-server-network-api-rw credentials.password 2>/dev/null || true)" +fi if [ -z "$U" ] || [ -z "$P" ]; then echo "[BLOCKED] No controller credential vaulted yet. Provision a read-only admin and vault it:" sed -n '8,14p' "$0"