Update nodemgmt-scripts.sh

This commit is contained in:
2023-11-14 23:05:31 -06:00
parent fd335ffd71
commit 550bdcf403

View File

@@ -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 ... "