forked from finn/tinyboard
health-check.sh: fix duplicate autossh_container variable declaration in check_spoke
This commit is contained in:
@@ -98,8 +98,6 @@ check_spoke() {
|
|||||||
fail "No autossh container running"
|
fail "No autossh container running"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local autossh_container
|
|
||||||
autossh_container=$(docker ps --format '{{.Names}}' 2>/dev/null | grep -i autossh | head -1 || true)
|
|
||||||
if [ -n "$autossh_container" ]; then
|
if [ -n "$autossh_container" ]; then
|
||||||
local tunnel_port hub_host
|
local tunnel_port hub_host
|
||||||
tunnel_port=$(docker inspect "$autossh_container" 2>/dev/null | python3 -c "
|
tunnel_port=$(docker inspect "$autossh_container" 2>/dev/null | python3 -c "
|
||||||
|
|||||||
Reference in New Issue
Block a user