Update sites.inc

This commit is contained in:
2023-07-20 21:06:20 -05:00
parent 606ba63fec
commit 7739126eeb

View File

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