From e8e38b1f07d569a837f9d400e89eace4c3b188e2 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 15 Nov 2023 08:47:13 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 11982e9b..f49be85c 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -533,10 +533,10 @@ UPDATE_DYNDNS(){ fi if [ "${NM_DYNUSER}" != "" ] && [ "${NM_DYNPASS}" != "" ]; then if [ "$(curl -m 3 -sL "https://${NM_DYNUSER}df:${NM_DYNPASS}@wdns.scity.us/domain/${domain}" | grep "HTTP 403 Error")" == "" ]; then - # for host in ${DYNDNS_HOSTS[@]}; do - # echo "updating: $host" - # /usr/bin/curl -s "https://${NM_DYNUSER}:${NM_DYNPASS}@wdns.scity.us/nic/update?hostname=${host}&myip=${NEWIP}" > /dev/null 2>&1 - # done + for host in ${DYNDNS_HOSTS[@]}; do + echo "updating: $host" + /usr/bin/curl -s "https://${NM_DYNUSER}:${NM_DYNPASS}@wdns.scity.us/nic/update?hostname=${host}&myip=${NEWIP}" > /dev/null 2>&1 + done [ "${LOCATION,,}" == "mainsite" ] && /usr/bin/curl -s "https://${NM_DYNUSER}:${NM_DYNPASS}@dns.scity.us/nic/update?hostname=sc1.scity.us&myip=${NEWIP}" > /dev/null 2>&1 echo -e "${idsCL[Green]}Done${idsCL[Default]}" else