Browse Source

After auto switch the easyengine NETWORKACTIVATE and WPSUBDOMAINS are not set properly fixed this by handling auto switch opton at the top

old-stable
Mitesh Shah 11 years ago
parent
commit
d0b9941ff2
  1. 25
      usr/local/sbin/easyengine

25
usr/local/sbin/easyengine

@ -1852,6 +1852,19 @@ then
EESITECREATE=$4 EESITECREATE=$4
WPCACHEOPTION=$5 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 # WordPress SubDirectory Variables
if [ "$EESITECREATE" = "--wpsubdir" ] || [ "$EESITECREATE" = "--wpsubdirectory" ] if [ "$EESITECREATE" = "--wpsubdir" ] || [ "$EESITECREATE" = "--wpsubdirectory" ]
then then
@ -1872,18 +1885,6 @@ then
EESITECREATE=--html EESITECREATE=--html
fi 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 No Cache Specified Use --basic As Default
if [ "$WPCACHEOPTION" = "" ] && [ "$EESITECREATE" != "--html" ] && [ "$EESITECREATE" != "--php" ] if [ "$WPCACHEOPTION" = "" ] && [ "$EESITECREATE" != "--html" ] && [ "$EESITECREATE" != "--php" ]

Loading…
Cancel
Save