From d0b9941ff298086be6f2254ef8e906119b46cf8c Mon Sep 17 00:00:00 2001 From: Mitesh Shah Date: Sat, 8 Mar 2014 14:57:40 +0530 Subject: [PATCH] After auto switch the easyengine NETWORKACTIVATE and WPSUBDOMAINS are not set properly fixed this by handling auto switch opton at the top --- usr/local/sbin/easyengine | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/usr/local/sbin/easyengine b/usr/local/sbin/easyengine index 63cf56f7..7a351328 100644 --- a/usr/local/sbin/easyengine +++ b/usr/local/sbin/easyengine @@ -1852,6 +1852,19 @@ then EESITECREATE=$4 WPCACHEOPTION=$5 + # Auto Switch The Options + if [ "$EESITECREATE" = "--basic" ] || [ "$EESITECREATE" = "--w3tc" ] || [ "$EESITECREATE" = "--wpsc" ] || [ "$EESITECREATE" = "--wpfc" ] + then + if [ "$WPCACHEOPTION" = "--wpsubdir" ] || [ "$WPCACHEOPTION" = "--wpsubdirectory" ] || [ "$WPCACHEOPTION" = "--wpsubdom" ] || [ "$WPCACHEOPTION" = "--wpsubdomain" ] + then + EESITECREATE=$5 + WPCACHEOPTION=$4 + else + EESITECREATE=--wp + WPCACHEOPTION=$4 + fi + fi + # WordPress SubDirectory Variables if [ "$EESITECREATE" = "--wpsubdir" ] || [ "$EESITECREATE" = "--wpsubdirectory" ] then @@ -1872,18 +1885,6 @@ then EESITECREATE=--html fi - # Auto Switch The Options - if [ "$EESITECREATE" = "--basic" ] || [ "$EESITECREATE" = "--w3tc" ] || [ "$EESITECREATE" = "--wpsc" ] || [ "$EESITECREATE" = "--wpfc" ] - then - 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 if [ "$WPCACHEOPTION" = "" ] && [ "$EESITECREATE" != "--html" ] && [ "$EESITECREATE" != "--php" ]