| @@ -0,0 +1,8 @@ | |||
| 1 | + | #!/bin/bash | |
| 2 | + | ||
| 3 | + | tailscale status | while IFS= read -r aHost; do | |
| 4 | + | hostname=$(echo "$aHost" | awk '{print $2}' | cut -d '-' -f 1) | |
| 5 | + | ip=$(echo "$aHost" | awk '{print $1}') | |
| 6 | + | ||
| 7 | + | hostctl add domains tailscale "$hostname.ts" --ip "$ip" | |
| 8 | + | done | |
willpower232 / tailscaleToHostCtl.sh
Last active 1 month ago
willpower232
revised this gist 1 month ago
·
55905ac
No changes
Will Power revised this gist 4 years ago · 0ee613d
1 file changed, 8 insertions