diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 92d35c85..62728dc2 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -828,7 +828,7 @@ CERTRENEW(){ timeout=`date --date='2 minutes' +%s` until [ "${checked}" = "" ]; do tchecked='' - for nip in "${NODE_HOSTS[@]}"; do + for nip in "${WEB_HOSTS[@]}"; do if [[ $(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) == *"${nip}"* ]]; then NCMD='' else NCMD="ssh root@${nip}" fi