File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ soft "All containers up" "cd ${BASE_DIR} && docker compose ps --status running |
3737# --- Container Health ---
3838echo -e " \n${CYAN} Container health:${NC} "
3939for c in $( docker ps --format ' {{.Names}}' 2> /dev/null | grep " ^freedom-" ) ; do
40- local health
4140 health=$( docker inspect --format=' {{.State.Health.Status}}' " $c " 2> /dev/null || echo " none" )
4241 case " $health " in
4342 healthy) ok " ${c} : healthy" ;;
@@ -78,7 +77,6 @@ check "fail2ban running" "systemctl is-active fail2ban"
7877soft " CrowdSec running" " systemctl is-active crowdsec"
7978soft " SSH key-only" " grep -q 'PasswordAuthentication no' /etc/ssh/sshd_config"
8079
81- local ssh_port
8280ssh_port=$( grep " ^Port " /etc/ssh/sshd_config 2> /dev/null | awk ' {print $2}' )
8381if [[ " $ssh_port " != " 22" && -n " $ssh_port " ]]; then
8482 ok " SSH port: ${ssh_port} (non-standard)"
You can’t perform that action at this time.
0 commit comments