2022-12-09 04:25:43 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
### Connect to Tailscale network
|
2022-12-24 11:08:26 +00:00
|
|
|
if command -v tailscale > /dev/null && [ "{{ .user.TAILSCALE_AUTH_KEY }}" != "" ]; then
|
2022-12-09 04:25:43 +00: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
|