20 lines
340 B
Bash
Executable File
20 lines
340 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
tailscaled &
|
|
echo "Waiting for tailscaled..."
|
|
sleep 5
|
|
|
|
until tailscale status > /dev/null 2>&1; do
|
|
sleep 1
|
|
done
|
|
|
|
tailscale up --hostname=whatido --accept-dns=false
|
|
echo "Tailscale is up, waiting for network to settle..."
|
|
sleep 5
|
|
|
|
tailscale funnel --bg --yes http://127.0.0.1:3003
|
|
echo "Funnel is ready!"
|
|
|
|
sleep infinity
|