Update nodemgmt-scripts.sh

This commit is contained in:
2022-07-04 15:03:22 -05:00
parent 1576383e92
commit daba2908ae

View File

@@ -1751,7 +1751,11 @@ UPDATE_DYNDNS(){
/usr/bin/curl -s "https://systems:Dcs9613@pdns.scity.us/nic/update?hostname=snsinvest.com&myip=${NEWIP}" > /dev/null 2>&1
/usr/bin/curl -s "https://systems:Dcs9613@pdns.scity.us/nic/update?hostname=misfitsmc.com&myip=${NEWIP}" > /dev/null 2>&1
echo "DYNDNS Updated" | mail -s "`hostname` (`hostname -I`) sent update" 9208839613@mms.att.net
echo "DYNDNS Updated" | mail -s "Updated WAN IP from '${OLDIP}' to '${NEWIP}'" 9208839613@mms.att.net
if [ "${1}" != 'q' ]; then
echo -en "${idsCL[Green]}Updated WAN IP from '${OLDIP}' to '${NEWIP}'${idsCL[Default]}"
fi
fi
if [ "${1}" != 'q' ]; then