From 0ef0a6c3f41ebaddcfccabf04e008d0d395ef2c3 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 25 Nov 2023 16:53:15 -0600 Subject: [PATCH] Update dsmon.sh --- dsmon.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dsmon.sh b/dsmon.sh index cd287c5..a8ec0d9 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -355,7 +355,7 @@ GETTSIP(){ GETTSIP_NODE(){ TSI=$(/sbin/ip link | grep tailscale0) if [ ${#TSI} != 0 ]; then - TSIP=$(/sbin/ip -o -4 addr list tailscale0 | awk '{print ${4}}' | cut -d/ -f1) + 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 "Tailscale running, TSIP: ${TSIP}"