From c52be23d6043bac3b8f486b6b7b2cb4ecfbde1bb Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 12 Nov 2023 10:45:25 -0600 Subject: [PATCH] Update sites.inc --- inc/sites.inc | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/inc/sites.inc b/inc/sites.inc index c95acd7a..d68323fb 100755 --- a/inc/sites.inc +++ b/inc/sites.inc @@ -677,13 +677,10 @@ SITEINFO(){ while [ "${edit^}" != "E" ]; do - if [ "${2}" == "" ]; then - echo -en "\n${idsCL[LightCyan]}Enter the site number you want to edit: ${idsCL[Default]}" - read siteid - echo - elif [ "${siteid}" == "" ]; then - siteid=${2} - fi + echo -en "\n${idsCL[LightCyan]}Enter the site number you want to edit: ${idsCL[Default]}" + read siteid + echo + site=${SITELIST[${siteid}]} sitefile=${gosite}/${site}.conf if [ "$(grep \#ssl_certificate ${sitefile})" != "" ]; then