tailscale-docker/simple-example/tailscale/start.sh
2022-08-22 14:40:50 -04:00

9 lines
No EOL
213 B
Bash

#!/bin/ash
echo "Starting TS daemon"
tailscaled --tun=userspace-networking &
PID=$!
until tailscale up --authkey=${TAILSCALE_AUTH_KEY} --hostname=complex-example; do
sleep 0.1
done
tailscale status
wait ${PID}