Update sites.inc

This commit is contained in:
2023-07-20 21:12:02 -05:00
parent 85972fbc81
commit b6e9e0bede

View File

@@ -112,9 +112,11 @@ DELSITES(){
sid=1
# filels="( $(ssh root@${LB_HOSTS[0]} ls ${NM_NGINXPATH}/sites-enabled/*) )"
filels="( $(ls ${NM_NGINXPATH}/sites-enabled/*) )"
echo
# IFS='\n'
for siteconf in $filels; do
# for siteconf in "${NM_NGINXPATH}/sites-enabled/*" ; do
echo $siteconf
# [ -e "$siteconf" ] || continue
if [ ${siteconf:0:1} == '/' ]; then
IFS='/'; site_conf=(${siteconf}); unset IFS