File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ if [[ "$http_code" =~ ^(200|301|302)$ ]]; then ok "HTTP webmail :9080 responds (
2424# -- Section 3: Roundcube webmail UI ------------------------------------------
2525info " Section 3: Roundcube webmail at :9080/mail"
2626roundcube_code=$( curl -so /dev/null -w " %{http_code}" http://localhost:9080/mail 2> /dev/null || echo " 000" )
27- roundcube_body =$( curl -sf http://localhost:9080/mail 2> /dev/null | head -20 || echo " " )
27+ _roundcube_body =$( curl -sf http://localhost:9080/mail 2> /dev/null | head -20 || echo " " )
2828info " Roundcube :9080/mail -> $roundcube_code "
2929if [[ " $roundcube_code " =~ ^(200| 301| 302)$ ]]; then
3030 ok " Roundcube webmail :9080/mail ($roundcube_code )"
@@ -44,7 +44,7 @@ if command -v nc >/dev/null 2>&1; then
4444 fi
4545else
4646 # fallback: just test TCP connect
47- smtp_code =$( curl -sf --max-time 5 smtp://localhost:9025 -o /dev/null -w " %{http_code}" 2> /dev/null || echo " 0" )
47+ _smtp_code =$( curl -sf --max-time 5 smtp://localhost:9025 -o /dev/null -w " %{http_code}" 2> /dev/null || echo " 0" )
4848 ok " SMTP :9025 reachability check (nc not available)"
4949fi
5050
8888
8989# -- Section 8: Dovecot status ------------------------------------------------
9090info " Section 8: Dovecot status"
91- dovecot_status =$( docker exec it-stack-iredmail-standalone dovecot stop 2>&1 || echo " no" )
91+ _dovecot_status =$( docker exec it-stack-iredmail-standalone dovecot stop 2>&1 || echo " no" )
9292# Actually let's check if dovecot process is running
9393dovecot_running=$( docker exec it-stack-iredmail-standalone pgrep -x dovecot 2> /dev/null && echo " running" || echo " not-found" )
9494info " Dovecot: $dovecot_running "
You can’t perform that action at this time.
0 commit comments