From 550bdcf4038e9f93e1168b008f4223b05e2f38cb Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 14 Nov 2023 23:05:31 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 8affc84c..97aab582 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -535,6 +535,11 @@ UPDATE_DYNDNS(){ else echo -e "${idsCL[LightRed]}Fail${idsCL[Default]}" fi + if [ "$(/usr/bin/curl -s "https://${NM_DYNUSER}:${NM_DYNPASS}@wdns.scity.us/nic/update?hostname=wan.pattonfam.com")" == "good" ]; then + echo -e "${idsCL[Green]}Pass${idsCL[Default]}" + else + echo -e "${idsCL[LightRed]}Fail${idsCL[Default]}" + fi else if [ ${FORCE} -eq 1 ]; then echo -en "${idsCL[Yellow]}'${idsCL[LightCyan]}${LOCATION^^}${idsCL[Yellow]}' WAN IP has not changed...\n${idsCL[Green]}but what the heck, lets update the records anyway ehh ... "