diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 7810c4e7..f657f4fa 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -529,6 +529,12 @@ UPDATE_DYNDNS(){ if ([ "${OLDIP}" != "" ] && [ "${NEWIP}" != "" ] && [[ "${OLDIP}" != *";"* ]] && [[ "${NEWIP}" != *";"* ]]) && ([ "${OLDIP}" != "${NEWIP}" ] || [ ${FORCE} -eq 1 ]); then if [ ${TESTMODE} -eq 1 ]; then echo -e "${idsCL[Green]}'${idsCL[LightCyan]}${LOCATION^^}${idsCL[Green]}' WAN IP has changed: ${idsCL[Yellow]}testmode active and will not update records${idsCL[Default]}" + echo -en "\nDYNDNS Credential Test: " + if [ "$(/usr/bin/curl -s "https://${NM_DYNUSER}:${NM_DYNPASS}@wdns.scity.us/nic/update")" != "" ]; 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 ... "