Update nodemgmt-scripts.sh
This commit is contained in:
@@ -530,7 +530,7 @@ UPDATE_DYNDNS(){
|
||||
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
|
||||
if [ "$(/usr/bin/curl -s "https://${NM_DYNUSER}:${NM_DYNPASS}@wdns.scity.us/nic/update?hostname=wan.pattonfam.com")" != "" ]; then
|
||||
echo -e "${idsCL[Green]}Pass${idsCL[Default]}"
|
||||
else
|
||||
echo -e "${idsCL[LightRed]}Fail${idsCL[Default]}"
|
||||
|
||||
Reference in New Issue
Block a user