ssh-bridge 1.0.2: drop unsupported --loginfoleak flag; wait on tailscaled default socket path
This commit is contained in:
1 parent
186481f8a1
commit
9d41776be7
2 files changed
+5
-4
No files matched your search
@@ -1,5 +1,5 @@
|
||||
name: "SSH Bridge (Tailscale)"
|
||||
version: "1.0.1"
|
||||
version: "1.0.2"
|
||||
slug: "ssh_bridge"
|
||||
description: "Contained tailscale+sshd jump host for tailnet access. Runs in its own network namespace; Home Assistant and the host itself do NOT join the tailnet."
|
||||
url: "https://git.halfast.com/hermes/ha-addons"
|
||||
|
||||
+4
-3
@@ -7,13 +7,14 @@ mkdir -p /data/ssh
|
||||
# --- tailscaled (real TUN inside this container's netns; host never joins tailnet)
|
||||
tailscaled \
|
||||
--statedir=/data/tailscale \
|
||||
--tun=tailscale0 \
|
||||
--loginfoleak=false &
|
||||
--tun=tailscale0 &
|
||||
TAILSD=$!
|
||||
|
||||
# Wait for the socket before trying to bring the node up.
|
||||
# (tailscaled's default socket is /var/run/tailscale/tailscaled.sock; statedir
|
||||
# only moves the state files, not the socket.)
|
||||
i=0
|
||||
until [ -e /data/tailscale/tailscaled.sock ]; do
|
||||
until [ -e /var/run/tailscale/tailscaled.sock ]; do
|
||||
i=$((i+1)); [ "$i" -gt 30 ] && { echo "tailscaled socket never appeared"; exit 1; }
|
||||
sleep 1
|
||||
done
|
||||
|
||||
Reference in new issue
Block a user