Update sites.inc
This commit is contained in:
@@ -447,6 +447,12 @@ VIEWSITEINFO(){
|
||||
cw_spc6=7
|
||||
|
||||
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
|
||||
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
|
||||
@@ -457,10 +463,7 @@ VIEWSITEINFO(){
|
||||
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]}"
|
||||
DIVIDER false yellow 80
|
||||
|
||||
sites=$(find ${LB_NGINX_SITES}/*)
|
||||
for sitefile in ${sites[@]}; do
|
||||
site=${sitefile##*/}; site=${site/.conf/}
|
||||
fi
|
||||
|
||||
|
||||
[ "$(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}"
|
||||
DIVIDER false darkGray 80
|
||||
|
||||
i=`expr $i + 1`
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user