From 2f7fd629b68305f16a4c8df6e79b98fb730d6025 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 5 Feb 2019 21:50:06 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) 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