diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 198e7026..801551d4 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1748,6 +1748,8 @@ UPDATE_DYNDNS(){ /usr/bin/curl -s "https://systems:Dcs9613@pdns.scity.us/nic/update?hostname=dasrei.com&myip=${NEWIP}" > /dev/null 2>&1 /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 + + if [ "${STATUS_CHECK_EMAIL}" != "" ]; then echo "DYNDNS Updated" | mail -s "`hostname` (`hostname -I`) sent update" ${STATUS_CHECK_EMAIL}; fi if [ "${1}" != 'q' ]; then echo -e "${idsCL[Green]}Done${idsCL[Default]}"