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