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
This commit is contained in:
@@ -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 <site-name|short> [--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"
|
||||
|
||||
Reference in New Issue
Block a user