tailscale-docker/simple-example/tailscale/start.sh

9 lines
213 B
Bash
Raw Normal View History

2022-08-22 18:03:01 +00:00
#!/bin/ash
echo "Starting TS daemon"
tailscaled --tun=userspace-networking &
2022-08-22 18:40:15 +00:00
PID=$!
until tailscale up --authkey=${TAILSCALE_AUTH_KEY} --hostname=complex-example; do
sleep 0.1
done
2022-08-22 18:03:01 +00:00
tailscale status
2022-08-22 18:40:15 +00:00
wait ${PID}