bin/deploy: if we resolve ts host, use fqdn

This commit is contained in:
Aaron Bieber 2024-04-01 20:12:20 -06:00
parent f0956c4018
commit 2f8cde4a89
No known key found for this signature in database

View File

@ -15,6 +15,8 @@ rebuild() {
if ! tsAlive $host; then if ! tsAlive $host; then
msg "can't reach ${1}.. skipping.." msg "can't reach ${1}.. skipping.."
return return
else
host="${host}.otter-alligator.ts.net"
fi fi
hostVersion=$(${SSH} root@${host} 'nixos-version --json | jq -r .configurationRevision') hostVersion=$(${SSH} root@${host} 'nixos-version --json | jq -r .configurationRevision')