Update sites.inc

This commit is contained in:
2023-05-25 21:45:14 -05:00
parent ec8225dc89
commit d265a4cee5

View File

@@ -447,6 +447,7 @@ SITEINFO(){
cw_spc5=7 cw_spc5=7
cw_spc6=8 cw_spc6=8
cw_spc7=15 cw_spc7=15
dl=108
MIP=$(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1) MIP=$(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1)
for NTYPE in "${NODE_TYPES[@]}"; do for NTYPE in "${NODE_TYPES[@]}"; do
var=${NTYPE}_HOSTS[@] var=${NTYPE}_HOSTS[@]
@@ -473,7 +474,7 @@ SITEINFO(){
for sitefile in ${sites[@]}; do for sitefile in ${sites[@]}; do
site=${sitefile##*/}; site=${site/.conf/} site=${sitefile##*/}; site=${site/.conf/}
if (( i % 12 == 0 )) || [ $i = 0 ]; then if (( i % 12 == 0 )) || [ $i = 0 ]; then
DIVIDER false yellow 98 DIVIDER false yellow ${dl}
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
msg3="SSL"; # c=0; spc3=''; spct=$((${cw_spc3}-${#msg3})); until [ $c = ${spct} ]; do spc3="${spc3} "; c=`expr $c + 1`; done msg3="SSL"; # c=0; spc3=''; spct=$((${cw_spc3}-${#msg3})); until [ $c = ${spct} ]; do spc3="${spc3} "; c=`expr $c + 1`; done
@@ -486,9 +487,9 @@ SITEINFO(){
echo -en "${idsST[Bold]}${idsCL[LightCyan]}" echo -en "${idsST[Bold]}${idsCL[LightCyan]}"
printf "%-30s %-10s %-7s %-7s %-7s %-7s %-8s %-15s\n" "##) ${msg1}" "${msg2}" "${msg3}" "${msg4}" "${msg5}" "${msg6}" "${msg7}" "${msg8}" printf "%-30s %-10s %-7s %-7s %-7s %-7s %-8s %-15s\n" "##) ${msg1}" "${msg2}" "${msg3}" "${msg4}" "${msg5}" "${msg6}" "${msg7}" "${msg8}"
echo -en "${idsST[Reset]}${idsCL[Default]}" echo -en "${idsST[Reset]}${idsCL[Default]}"
DIVIDER false yellow 98 DIVIDER false yellow ${dl}
else else
DIVIDER false darkGray 98 DIVIDER false darkGray ${dl}
fi fi
if [ "$(grep include/proxy.conf ${sitefile})" != "" ]; then if [ "$(grep include/proxy.conf ${sitefile})" != "" ]; then
type='Proxy' type='Proxy'