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]}"