diff --git a/dsmon.sh b/dsmon.sh index 1df0878..26a31c9 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -302,7 +302,7 @@ GETTSIP(){ if [ ${#TSI} != 0 ]; then TSIP=$(/sbin/ip -o -4 addr list tailscale0 | awk '{print $4}' | cut -d/ -f1) hostname=$(hostname -f) - ([ "${hostname}" == "" ] || [[ "${hostname}" !=~ *".scity"* ]]) && hostname="$(hostname).ts.scity.us" || hostname=${hostname/.scity/.ts.scity} + ([ "${hostname}" == "" ] || [[ "${hostname}" != *".scity"* ]]) && hostname="$(hostname).ts.scity.us" || hostname=${hostname/.scity/.ts.scity} echo "${hostname}" echo "Tailscale running, TSIP: ${TSIP}" echo -en "Updating DNS ... "