diff --git a/inc/sites.inc b/inc/sites.inc index 17d94c62..3a66d928 100755 --- a/inc/sites.inc +++ b/inc/sites.inc @@ -110,10 +110,10 @@ DELSITES(){ echo -e "${idsCL[Red]}Select a site to delete...${idsCL[Default]}" DIVIDER true sid=1 - filels="( $(ssh root@${WEB_HOSTS[0]} ls ${NM_NGINXPATH}/sites-available/*) )" + # filels="( $(ssh root@${WEB_HOSTS[0]} ls ${NM_NGINXPATH}/sites-enabled/*) )" # IFS='\n' for siteconf in $filels; do - # for siteconf in ${NM_NGINXPATH}/sites-available/* ; do + for siteconf in ${NM_NGINXPATH}/sites-enabled/* ; do # [ -e "$siteconf" ] || continue if [ ${siteconf:0:1} == '/' ]; then IFS='/'; site_conf=(${siteconf}); unset IFS