Update nodemgmt-scripts.sh

This commit is contained in:
2019-04-01 23:11:51 -05:00
parent a7b7c50624
commit bdf7eeadb6

View File

@@ -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