2022-12-08 20:25:43 -08:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
### Connect to Tailscale network
|
2022-12-24 03:08:26 -08:00
|
|
|
if command -v tailscale > /dev/null && [ "{{ .user.TAILSCALE_AUTH_KEY }}" != "" ]; then
|
2022-12-08 20:25:43 -08:00
|
|
|
logg info 'Connecting to Tailscale with user-defined authentication key'
|
|
|
|
tailscale up --authkey={{ .user.TAILSCALE_AUTH_KEY }} && logg success 'Connected to Tailscale network'
|
|
|
|
fi
|