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]}" echo -e "${idsCL[Red]}Select a site to delete...${idsCL[Default]}"
DIVIDER true DIVIDER true
sid=1 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' # IFS='\n'
for siteconf in $filels; do for siteconf in $filels; do
# for siteconf in ${NM_NGINXPATH}/sites-available/* ; do for siteconf in ${NM_NGINXPATH}/sites-enabled/* ; do
# [ -e "$siteconf" ] || continue # [ -e "$siteconf" ] || continue
if [ ${siteconf:0:1} == '/' ]; then if [ ${siteconf:0:1} == '/' ]; then
IFS='/'; site_conf=(${siteconf}); unset IFS IFS='/'; site_conf=(${siteconf}); unset IFS