Update dsmon.sh

This commit is contained in:
2023-07-15 18:23:45 -05:00
parent 7c7a939c97
commit 2e607720ee

View File

@@ -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/.ts.scity}
[ "${hostname}" == "" ] && hostname="$(hostname).ts.scity.us" || hostname=${hostname/.scity/.ts.scity}
echo "${hostname}"
echo "Tailscale running, TSIP: ${TSIP}"
echo -en "Updating DNS ... "