From 45651ecf10ec57efb96824ee5925a5e584e0af7b Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 6 Feb 2019 13:02:39 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 3b86bbbd..b6ca191e 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -212,17 +212,16 @@ DELSITE(){ esac shift done - if [ -z ${DEL_SSL+x} ] || [[ $DEL_SSL =~ ^[Nn]$ ]]; then - DEL_SSL=no - elif [[ $DEL_SSL =~ ^[Yy]$ ]]; then - DEL_SSL=yes - fi if [ -z ${DEL_SITE+x} ]; then echo -e -n "${idsCL[LightCyan]}Delete what site address: ${idsCL[Default]}" read DEL_SITE echo "" fi - if [ -z ${DEL_SSL+x} ]; then + if [[ $DEL_SSL =~ ^[Nn]$ ]]; then + DEL_SSL=no + elif [[ $DEL_SSL =~ ^[Yy]$ ]]; then + DEL_SSL=yes + elif [ -z ${DEL_SSL+x} ]; then echo -e -n "${idsCL[LightRed]}Do you also want to delete the certs for '${DEL_SITE}' as well? [y/N]${idsCL[Default]} " read DEL_SSL fi