From 156739c2d89531bbed550b23463b22b222bf0de6 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 17 Jun 2023 13:20:41 -0500 Subject: [PATCH] Update sites.inc --- inc/sites.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/inc/sites.inc b/inc/sites.inc index db7df78f..73524d65 100755 --- a/inc/sites.inc +++ b/inc/sites.inc @@ -31,6 +31,11 @@ DELSITE(){ 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 + if [[ $DEL_SSL =~ ^[Nn]$ ]]; then + DEL_SSL=no + elif [[ $DEL_SSL =~ ^[Yy]$ ]]; then + DEL_SSL=yes + fi fi if [ ! -z ${DEL_SITE+x} ] && [ "${DEL_SITE}" != "" ]; then echo -e "${idsCL[LightRed]}Deleting site '${idsCL[Red]}${DEL_SITE^^}${idsCL[LightRed]}'...${idsCL[Default]}"