diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index cdbebeaa..a21040e3 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1197,7 +1197,7 @@ SERVICE(){ if [ "${3}" != "q" ]; then echo -en "${idsCL[LightYellow]}Verifying nginx config and ssl cert replication across the nodes... ${idsCL[Default]}" fi - if [[ $(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) == *"${nip}"* ]]; then + if [[ $(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) == *"${!NT_HOST}"* ]]; then PH_CMD="" else PH_CMD="ssh root@${!NT_HOST}"