From 1b4997c7a0528af2d7a3c3c9826701ee57c5b641 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 24 May 2023 23:17:19 -0500 Subject: [PATCH] update --- defaults.inc | 1 + inc/sites.inc | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/defaults.inc b/defaults.inc index 94218503..4c0cdc98 100755 --- a/defaults.inc +++ b/defaults.inc @@ -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' diff --git a/inc/sites.inc b/inc/sites.inc index 874a5e99..bbfd8bdc 100755 --- a/inc/sites.inc +++ b/inc/sites.inc @@ -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/}