From 24bb6257969c39ac14b4edbeabb67355b98d148b Mon Sep 17 00:00:00 2001 From: Mitesh Shah Date: Fri, 3 Jan 2014 14:34:46 +0530 Subject: [PATCH] Use Default When Possible --- usr/local/sbin/easyengine | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/usr/local/sbin/easyengine b/usr/local/sbin/easyengine index 572594d6..c11364e4 100644 --- a/usr/local/sbin/easyengine +++ b/usr/local/sbin/easyengine @@ -1574,6 +1574,25 @@ then WPSUBDOMAINS="--subdomains" fi + # USE DEFAULT WHEN POSSIBLES + # ee site create example.com + if [ "$EESITECREATE" = "" ] + then + EESITECREATE=--html + fi + + if [ "$EESITECREATE" = "--w3tc" ] || [ "$EESITECREATE" = "--wpsc" ] || [ "$EESITECREATE" = "--wpfc" ] + then + EESITECREATE=--wp + WPCACHEOPTION=$4 + fi + + # If No Cache Specified Use --basic As Default + if [ "$WPCACHEOPTION" = "" ] && [ "$EESITECREATE" != "--html" ] && [ "$EESITECREATE" != "--php" ] + then + WPCACHEOPTION=--basic + fi + if [ "$EESITECREATE" = "--html" ] then