This commit is contained in:
2023-05-24 23:17:19 -05:00
parent d278795725
commit 1b4997c7a0
2 changed files with 9 additions and 1 deletions

View File

@@ -37,6 +37,7 @@ PWDOCKER=uptime-kuma
#LBDOCKER=nginx-proxy_manager
LB_NGINX_SITES='/opt/lb-data/nginx/sites-enabled'
WEB_NGINX_SITES='/mnt/web-data/nginx/sites-enabled'
noheader=' service status-check nightlyrephp7.3-fpm,new backup report check checkcerts gitea update-nodes copynpmcerts singleservercheck '
CERT_DAEMON='/snap/bin/certbot'

View File

@@ -449,7 +449,14 @@ VIEWSITEINFO(){
echo -e "${idsCL[LightGreen]}Site Information ${idsCL[Default]}"
sites=$(find ${LB_NGINX_SITES}/*); i=0
if [ "${1}" == "lb" ]; then
gosite=${LB_NGINX_SITES}
elif [ "${1}" == "web" ]; then
gosite=${WEB_NGINX_SITES}
else
exit 0
fi
sites=$(find ${gosite}/*); i=0
for sitefile in ${sites[@]}; do
site=${sitefile##*/}; site=${site/.conf/}