admin-scripts/.archived/shell/check_repl_status

12 lines
213 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
selection=$(mc ls nas-local | awk '{print $5}' | gum choose --limit=1)
gum format -t markdown "# ${selection}"
echo ""
mc replicate status "nas-local/${selection}"
exit 0