From 7c7a939c972e9e3d6a2670d5bd05db76b05e1b90 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 15 Jul 2023 18:21:49 -0500 Subject: [PATCH] Update dsmon.sh --- dsmon.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dsmon.sh b/dsmon.sh index dace072..360e59d 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -301,7 +301,9 @@ GETTSIP(){ TSI=$(/sbin/ip link | grep tailscale0) if [ ${#TSI} != 0 ]; then TSIP=$(/sbin/ip -o -4 addr list tailscale0 | awk '{print $4}' | cut -d/ -f1) - echo "$(hostname) - $(hostname -f) - $(hostname -a)" + hostname=$(hostname -f) + hostname=${hostname/.scity/.ts.scity} + echo "${hostname}" echo "Tailscale running, TSIP: ${TSIP}" echo -en "Updating DNS ... " # /usr/bin/curl "https://systems:Dcs9613@dns.scity.us/nic/update?hostname=backup.ts.scity.us&myip=${TSIP}" >/dev/null 2>&1