Update dsmon.sh
This commit is contained in:
14
dsmon.sh
14
dsmon.sh
@@ -297,6 +297,20 @@ RUNCMD(){
|
||||
echo
|
||||
}
|
||||
|
||||
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)"
|
||||
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
|
||||
echo "Done"
|
||||
else
|
||||
echo "Not running Tailscale"
|
||||
fi
|
||||
}
|
||||
|
||||
GETCRONTABS(){
|
||||
start=`date +%s`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user