mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-25 18:40:06 -04:00
help.sh: port 80 is the Controller's, not Caddy's; fix IPv4 port regex.
The Caddyfile only binds 443/8084/8085/8086 and reverse-proxies to the Controller on port 80, which the Controller health check already covers. The IPv4 alternative in the port grep was missing its colon, so only the IPv6 ":::" listeners ever matched. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
0e67cd6c74
commit
715035e5dc
1 changed files with 3 additions and 2 deletions
5
help.sh
5
help.sh
|
|
@ -371,8 +371,9 @@ else
|
|||
echo "FAILED: Certificate renewal timer is not enabled (fix with: systemctl enable --now wrolpi-cert-renew.timer)"
|
||||
fi
|
||||
|
||||
for port in 80 443 8084 8085 8086; do
|
||||
if netstat -ant | grep LISTEN | grep -E "(0\.0\.0\.0|:::)${port}\b" >/dev/null; then
|
||||
# Port 80 belongs to the Controller (checked above); Caddy proxies to it.
|
||||
for port in 443 8084 8085 8086; do
|
||||
if netstat -ant | grep LISTEN | grep -E "(0\.0\.0\.0:|:::)${port}\b" >/dev/null; then
|
||||
echo "OK: Caddy port ${port} is occupied"
|
||||
else
|
||||
echo "FAILED: Caddy port ${port} is not occupied"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue