From dffcaf663300eb1974f260ca60dd77ecd662a8f1 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 24 May 2023 22:25:40 -0500 Subject: [PATCH] update --- inc/certs.inc | 2 +- inc/sites.inc | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/inc/certs.inc b/inc/certs.inc index 07b417fe..a7fcd803 100755 --- a/inc/certs.inc +++ b/inc/certs.inc @@ -199,7 +199,7 @@ LISTCERTS(){ done unset IFS if [ ! -z ${LOCAL_SERVICES+x} ]; then - NCMD="ssh root@${MYSQL_HOSTS[0]}" + NCMD="ssh root@${LB_HOSTS[0]}" #${NCMD} rm -f /tmp/ssllist #${NCMD} 'for certdir in /etc/letsencrypt/live/*/ ; do echo $certdir; done' > /tmp/ssllist else diff --git a/inc/sites.inc b/inc/sites.inc index fcb0934e..0bd46616 100755 --- a/inc/sites.inc +++ b/inc/sites.inc @@ -439,7 +439,7 @@ NEWSITE(){ } VIEWSITEINFO(){ - cw_spc1=20 + cw_spc1=30 cw_spc2=10 cw_spc3=7 cw_spc4=7 @@ -455,7 +455,13 @@ VIEWSITEINFO(){ msg5="WBSKT"; c=0; spc5=''; spct=$((${cw_spc5}-${#msg5})); until [ $c = ${spct} ]; do spc5="${spc5} "; c=`expr $c + 1`; done msg6="Proxy Host"; # c=0; spc6=''; spct=$((${cw_spc6}-${#msg6})); until [ $c = ${spct} ]; do spc6="${spc6} "; c=`expr $c + 1`; done echo -e "${msg1}${spc1}${msg2}${spc2}${msg3}${spc3}${msg4}${spc4}${msg5}${spc5}${msg6}${spc7}" - DIVIDER false yellow 80 + DIVIDER false yellow 80 + + sites=$(find /opt/lb-data/nginx/sites-enabled/*) + for site in ${sites[@]}; do + site=${site/.conf/} + echo "${site}" + done }