Update sites.inc

This commit is contained in:
2023-05-24 22:56:36 -05:00
parent 7cbd618a8f
commit 3f03c1ca7f

View File

@@ -447,6 +447,12 @@ VIEWSITEINFO(){
cw_spc6=7 cw_spc6=7
echo -e "${idsCL[LightGreen]}Site Information ${idsCL[Default]}" echo -e "${idsCL[LightGreen]}Site Information ${idsCL[Default]}"
sites=$(find ${LB_NGINX_SITES}/*); i=0
for sitefile in ${sites[@]}; do
site=${sitefile##*/}; site=${site/.conf/}
if (( count % 2 == 0 )) || [ $i = 0 ]; then
DIVIDER false yellow 80 DIVIDER false yellow 80
msg1="Site Address"; c=0; spc1=''; spct=$((${cw_spc1}-${#msg1})); until [ $c = ${spct} ]; do spc1="${spc1} "; c=`expr $c + 1`; done msg1="Site Address"; c=0; spc1=''; spct=$((${cw_spc1}-${#msg1})); until [ $c = ${spct} ]; do spc1="${spc1} "; c=`expr $c + 1`; done
msg2="Type"; c=0; spc2=''; spct=$((${cw_spc2}-${#msg2})); until [ $c = ${spct} ]; do spc2="${spc2} "; c=`expr $c + 1`; done msg2="Type"; c=0; spc2=''; spct=$((${cw_spc2}-${#msg2})); until [ $c = ${spct} ]; do spc2="${spc2} "; c=`expr $c + 1`; done
@@ -457,10 +463,7 @@ VIEWSITEINFO(){
msg7="Proxy Host"; msg7="Proxy Host";
echo -e "${idsST[Bold]}${idsCL[LightCyan]}${msg1}${spc1}${msg2}${spc2}${msg3}${spc3}${msg4}${spc4}${msg5}${spc5}${msg6}${spc6}${msg7}${idsST[Reset]}${idsCL[Default]}" echo -e "${idsST[Bold]}${idsCL[LightCyan]}${msg1}${spc1}${msg2}${spc2}${msg3}${spc3}${msg4}${spc4}${msg5}${spc5}${msg6}${spc6}${msg7}${idsST[Reset]}${idsCL[Default]}"
DIVIDER false yellow 80 DIVIDER false yellow 80
fi
sites=$(find ${LB_NGINX_SITES}/*)
for sitefile in ${sites[@]}; do
site=${sitefile##*/}; site=${site/.conf/}
[ "$(grep include/proxy.conf ${sitefile})" != "" ] && type='Proxy' || type='HTTP' [ "$(grep include/proxy.conf ${sitefile})" != "" ] && type='Proxy' || type='HTTP'
@@ -479,6 +482,8 @@ VIEWSITEINFO(){
echo -e "${msg1}${spc1}${msg2}${spc2}${msg3}${spc3}${msg4}${spc4}${msg5}${spc5}${msg6}${spc6}${msg7}" echo -e "${msg1}${spc1}${msg2}${spc2}${msg3}${spc3}${msg4}${spc4}${msg5}${spc5}${msg6}${spc6}${msg7}"
DIVIDER false darkGray 80 DIVIDER false darkGray 80
i=`expr $i + 1`
done done
} }