diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index e9b13d1a..41e8f140 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -254,6 +254,7 @@ DELSITES(){ DIVIDER true sid=1 for siteconf in /etc/nginx/sites-available/* ; do + [ -e "$siteconf" ] || continue IFS='/'; site_conf=(${siteconf}); unset IFS SITES[${sid}]=${site_conf[4]} sid=`expr $sid + 1` @@ -374,7 +375,7 @@ NEWSITE(){ fi echo -e -n "${idsCL[LightRed]}Is this information correct? [Y/n]${idsCL[Default]} " read response - if [[ $response =~ ^[Yy]$ ]]; then + if [[ $response =~ ^[Yy]$ ]]; then if [[ ${NEW_SITE} == *","* ]]; then IFS=','; NEW_SITES=(${NEW_SITE}); unset IFS MAIN_SITE=${NEW_SITES[0]}