#!/bin/sh
# Read-only diagnostic example. No config changes and no secrets printed.
set -eu
container=${1:-freeradius}
docker inspect --format 'Status={{.State.Status}} Restarts={{.RestartCount}}' "$container"
docker port "$container"
docker exec "$container" sh -c 'id freerad; ls -ld /etc/raddb /etc/freeradius'
# Inspect host-side config ownership separately; avoid chmod 777.
# Successful startup alone does not prove RADIUS authentication or EAP security.
