From ba0642b16e1b9e77bb9c945afc0c44dfb2088a58 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 7 Apr 2022 16:13:45 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index ad976420..9c9b1a6d 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1776,10 +1776,12 @@ UPDATE_DYNDNS(){ /usr/bin/curl -s "https://systems:Dcs9613@pdns.scity.us/nic/update?hostname=snsinvest.com&myip=`dig +short myip.opendns.com @resolver1.opendns.com`" > /dev/null 2>&1 /usr/bin/curl -s "https://systems:Dcs9613@pdns.scity.us/nic/update?hostname=misfitsmc.com&myip=`dig +short myip.opendns.com @resolver1.opendns.com`" > /dev/null 2>&1 - echo -e "${idsCL[Green]}Done${idsCL[Default]}" - echo "" - read -n 1 -s -p "Press any key to continue" - echo + if [ "${1}" != 'q' ]; then + echo -e "${idsCL[Green]}Done${idsCL[Default]}" + echo "" + read -n 1 -s -p "Press any key to continue" + echo + fi } RUN_COMMAND(){ @@ -1867,7 +1869,7 @@ if [ ${action-x} ]; then newsite) NEWSITE ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11} ${12} ${13} ${14} ${15};; update) ;; update-nodes) NODEUPDATE ${2};; - update-dyndns) UPDATE_DYNDNS;; + update-dyndns) UPDATE_DYNDNS ${2};; backup) BACKUP;; status) if [ "${2}" = "report" ]; then