From d265a4cee5ce47f2536ea004a99150a6bdd95167 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 25 May 2023 21:45:14 -0500 Subject: [PATCH] Update sites.inc --- inc/sites.inc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/inc/sites.inc b/inc/sites.inc index 9491e950..e7b47b68 100755 --- a/inc/sites.inc +++ b/inc/sites.inc @@ -447,6 +447,7 @@ SITEINFO(){ cw_spc5=7 cw_spc6=8 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) for NTYPE in "${NODE_TYPES[@]}"; do var=${NTYPE}_HOSTS[@] @@ -473,7 +474,7 @@ SITEINFO(){ for sitefile in ${sites[@]}; do site=${sitefile##*/}; site=${site/.conf/} 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 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 @@ -486,9 +487,9 @@ SITEINFO(){ echo -en "${idsST[Bold]}${idsCL[LightCyan]}" printf "%-30s %-10s %-7s %-7s %-7s %-7s %-8s %-15s\n" "##) ${msg1}" "${msg2}" "${msg3}" "${msg4}" "${msg5}" "${msg6}" "${msg7}" "${msg8}" echo -en "${idsST[Reset]}${idsCL[Default]}" - DIVIDER false yellow 98 + DIVIDER false yellow ${dl} else - DIVIDER false darkGray 98 + DIVIDER false darkGray ${dl} fi if [ "$(grep include/proxy.conf ${sitefile})" != "" ]; then type='Proxy'