Fix Pimox worker Tailscale join detection

This commit is contained in:
juvdiaz 2026-06-29 21:48:15 -06:00
parent ef83e71088
commit f2fe545471
1 changed files with 1 additions and 1 deletions

View File

@ -991,7 +991,7 @@ if ! ssh -i "$ssh_key" -o BatchMode=yes -o ConnectTimeout=10 -o StrictHostKeyChe
fi fi
if ssh -i "$ssh_key" -o BatchMode=yes -o ConnectTimeout=10 -o StrictHostKeyChecking=accept-new "$ssh_target" \ if ssh -i "$ssh_key" -o BatchMode=yes -o ConnectTimeout=10 -o StrictHostKeyChecking=accept-new "$ssh_target" \
'tailscale status --json >/dev/null 2>&1'; then 'test -n "$(tailscale ip -4 2>/dev/null | head -n 1)"'; then
ssh -i "$ssh_key" -o BatchMode=yes -o ConnectTimeout=10 -o StrictHostKeyChecking=accept-new "$ssh_target" \ ssh -i "$ssh_key" -o BatchMode=yes -o ConnectTimeout=10 -o StrictHostKeyChecking=accept-new "$ssh_target" \
"sudo tailscale set --accept-routes=$accept_routes" "sudo tailscale set --accept-routes=$accept_routes"
exit 0 exit 0