From 1f39e8efd281d12a14c5c1f8a693ba6647a34596 Mon Sep 17 00:00:00 2001 From: Mitesh Shah Date: Tue, 21 Oct 2014 17:04:52 +0530 Subject: [PATCH] Kick out for invalid cache options --- src/modules/site/ee_mod_site_option.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/modules/site/ee_mod_site_option.sh b/src/modules/site/ee_mod_site_option.sh index 4c7f0e55..bc1ba4ee 100644 --- a/src/modules/site/ee_mod_site_option.sh +++ b/src/modules/site/ee_mod_site_option.sh @@ -12,6 +12,11 @@ function ee_mod_site_option() fi fi + # Kick out for invalid cache option + if [ "$EE_SITE_CACHE_OPTION" != "--basic" ] || [ "$EE_SITE_CACHE_OPTION" != "--wpsc" ] || [ "$EE_SITE_CACHE_OPTION" != "--w3tc" ] || [ "$EE_SITE_CACHE_OPTION" != "--wpfc" ]; then + ee_lib_error "Invalid cache option $EE_SITE_CACHE_OPTION, exit status = " $? + fi + # WordPresss subdirectory variables if [ "$EE_SITE_CREATE_OPTION" = "--wpsubdir" ] || [ "$EE_SITE_CREATE_OPTION" = "--wpsubdirectory" ]; then EE_SITE_CREATE_OPTION="--wpsubdir"