Fix Pimox worker Tailscale join detection
This commit is contained in:
parent
ef83e71088
commit
f2fe545471
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue