From 8139207f75660ed5da6637d349190386ca908c46 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 15 Jul 2023 18:47:09 -0500 Subject: [PATCH] Update dsmon.sh --- dsmon.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dsmon.sh b/dsmon.sh index 8d48923..c652a2a 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -333,11 +333,10 @@ GETTSIP_NODE(){ TSIP=$(/sbin/ip -o -4 addr list tailscale0 | awk '{print $4}' | cut -d/ -f1) hostname=$(hostname -f); hostname=${hostname,,} ([ "${hostname}" == "" ] || [[ "${hostname}" != *".scity"* ]]) && hostname=$(hostname) && hostname="${hostname,,}.ts.scity.us" || hostname=${hostname/.scity/.ts.scity} - echo "${hostname,,}" echo "Tailscale running, TSIP: ${TSIP}" echo -en "Updating DNS for '${hostname}' ... " - # /usr/bin/curl "https://systems:Dcs9613@dns.scity.us/nic/update?hostname=backup.ts.scity.us&myip=${TSIP}" >/dev/null 2>&1 - echo "Done" + dyndns=$(/usr/bin/curl "https://systems:Dcs9613@dns.scity.us/nic/update?hostname=backup.ts.scity.us&myip=${TSIP}") + echo "Done - (${dyndns})" else echo "Not running Tailscale" fi