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