From dda9560714f2da445e593baf65b42c13aca74918 Mon Sep 17 00:00:00 2001 From: Mitesh Shah Date: Sat, 8 Mar 2014 12:18:47 +0530 Subject: [PATCH] Auto Switch the site create options --- usr/local/sbin/easyengine | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/usr/local/sbin/easyengine b/usr/local/sbin/easyengine index e539fc65..0b32019f 100644 --- a/usr/local/sbin/easyengine +++ b/usr/local/sbin/easyengine @@ -1870,10 +1870,17 @@ then EESITECREATE=--html fi + # Auto Switch The Options if [ "$EESITECREATE" = "--basic" ] || [ "$EESITECREATE" = "--w3tc" ] || [ "$EESITECREATE" = "--wpsc" ] || [ "$EESITECREATE" = "--wpfc" ] then - EESITECREATE=--wp - WPCACHEOPTION=$4 + if [ "$WPCACHEOPTION" = "--wpsubdir" ] || [ "$WPCACHEOPTION" = "--wpsubdirectory" ] || [ "$WPCACHEOPTION" = "--wpsubdom" ] || [ "$WPCACHEOPTION" = "--wpsubdomain" ] + then + EESITECREATE=$5 + WPCACHEOPTION=$4 + else + EESITECREATE=--wp + WPCACHEOPTION=$4 + fi fi # If No Cache Specified Use --basic As Default