diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index c6583c12..e6a89961 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -218,7 +218,7 @@ DELSITE(){ } DELSITES(){ - echo -e "${idsCL[Green]}Select a site to delete...${idsCL[Default]}" + echo -e "${idsCL[Red]}Select a site to delete...${idsCL[Default]}" DIVIDER true sid=1 for siteconf in /etc/nginx/sites-available/* ; do @@ -226,18 +226,18 @@ DELSITES(){ SITES[${sid}]=${site_conf[4]} sid=`expr $sid + 1` done - while : - do - for s in "${!SITES[@]}"; do - echo " [${s}] ${SITES[${s}]}" - done - echo "" - echo " [Q] Quit" - echo "" - echo "" - echo -e -n "${idsCL[LightYellow]}Please select a site from above from above:${idsCL[Default]} " - read -n 2 selsite + for s in "${!SITES[@]}"; do + echo " [${s}] ${SITES[${s}]}" done + echo "" + if [ -z $action ] || [ "${action}" = "gui" ]; then + echo " [B] Back" + fi + echo " [Q] Quit" + echo "" + echo "" + echo -e -n "${idsCL[LightYellow]}Please select a site from above from above:${idsCL[Default]} " + read -n 2 selsite echo $selsite if [ -z $action ] || [ "${action}" = "gui" ]; then ENTER2CONTINUE