Update sites.inc

This commit is contained in:
2023-07-20 21:08:10 -05:00
parent d917bf20b0
commit 5f751576e7

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-enabled/*) )"
filels="( $(ssh root@${LB_HOSTS[0]} ls ${NM_NGINXPATH}/sites-enabled/*) )"
# IFS='\n'
# for siteconf in $filels; do
for siteconf in ${NM_NGINXPATH}/sites-enabled/* ; do
for siteconf in $filels; do
# for siteconf in ${NM_NGINXPATH}/sites-enabled/* ; do
# [ -e "$siteconf" ] || continue
if [ ${siteconf:0:1} == '/' ]; then
IFS='/'; site_conf=(${siteconf}); unset IFS