This commit is contained in:
2023-05-24 22:25:40 -05:00
parent 2505bab729
commit dffcaf6633
2 changed files with 9 additions and 3 deletions

View File

@@ -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

View File

@@ -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
}