diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index f0b4d384..02728eb6 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -965,7 +965,7 @@ NEWSITE(){ if [[ $(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) != *"${nip}"* ]]; then checked=false until [ "${checked}" = "" ]; do - checked=`ssh root@${nip} "[ ! -d /var/www/test ] && echo does not exist"` + checked=`ssh root@${nip} "[ ! -d /var/www/${MAIN_SITE} ] && echo does not exist"` done fi done