Update file run_onchange_after_59-connect-tailscale.tmpl

This commit is contained in:
Brian Zalewski 2022-12-24 11:08:26 +00:00
parent 66d52c3640
commit 4df6a82d3d

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
### Connect to Tailscale network ### Connect to Tailscale network
if command -v tailscale > /dev/null && [ {{ .user.TAILSCALE_AUTH_KEY }} != "" ]; then if command -v tailscale > /dev/null && [ "{{ .user.TAILSCALE_AUTH_KEY }}" != "" ]; then
logg info 'Connecting to Tailscale with user-defined authentication key' logg info 'Connecting to Tailscale with user-defined authentication key'
tailscale up --authkey={{ .user.TAILSCALE_AUTH_KEY }} && logg success 'Connected to Tailscale network' tailscale up --authkey={{ .user.TAILSCALE_AUTH_KEY }} && logg success 'Connected to Tailscale network'
fi fi