From 81c77537c7c2102ca390ce64a5166a644a35e4ef Mon Sep 17 00:00:00 2001 From: Mitesh Shah Date: Tue, 17 Jun 2014 18:32:15 +0530 Subject: [PATCH] Search/Replace --- bin/ee | 52 ++++++++++++++++++++++++++-------------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/bin/ee b/bin/ee index 34d57d7f..5b4e2b5e 100644 --- a/bin/ee +++ b/bin/ee @@ -370,7 +370,7 @@ SETUP_DOMAIN() ee_lib_check_domain # Creating Website $EE_DOMAIN - EEee_mod_domain_setup + ee_mod_domain_setup # Setup WordPress Webroot & Database ee_mod_setup_wordpress @@ -396,7 +396,7 @@ TOTALCACHENGINX() wp plugin --allow-root install w3-total-cache &>> $EE_COMMAND_LOG || ee_lib_error "Unable To Install W3 Total Cache Plugin" # Activate W3 Total Cache - wp plugin --allow-root activate w3-total-cache $NETWORKACTIVATE &>> $EE_COMMAND_LOG || ee_lib_error "Unable To Activate W3 Total Cache Plugin" + wp plugin --allow-root activate w3-total-cache $EE_NETWORK_ACTIVATE &>> $EE_COMMAND_LOG || ee_lib_error "Unable To Activate W3 Total Cache Plugin" } SUPERCACHENGINX() @@ -407,7 +407,7 @@ SUPERCACHENGINX() wp plugin --allow-root install wp-super-cache &>> $EE_COMMAND_LOG || ee_lib_error "Unable To Install WP Super Cache Plugin" # Activate WP Super Cache - wp plugin --allow-root activate wp-super-cache $NETWORKACTIVATE &>> $EE_COMMAND_LOG || ee_lib_error "Unable To Activate WP Super Cache Plugin" + wp plugin --allow-root activate wp-super-cache $EE_NETWORK_ACTIVATE &>> $EE_COMMAND_LOG || ee_lib_error "Unable To Activate WP Super Cache Plugin" } NGINXHELPER() @@ -418,7 +418,7 @@ NGINXHELPER() wp plugin --allow-root install nginx-helper &>> $EE_COMMAND_LOG || ee_lib_error "Unable To Install Nginx Helper" # Activate Nginx Helper - wp plugin --allow-root activate nginx-helper $NETWORKACTIVATE &>> $EE_COMMAND_LOG || ee_lib_error "Unable To Activate Nginx Helper Plugin" + wp plugin --allow-root activate nginx-helper $EE_NETWORK_ACTIVATE &>> $EE_COMMAND_LOG || ee_lib_error "Unable To Activate Nginx Helper Plugin" } @@ -427,7 +427,7 @@ SETUPWPNETWORK() { # Prepare wp-config.php File Foe WordPress Multisite With SubDirectory cd /var/www/$EE_DOMAIN/htdocs || ee_lib_error "Unable To Change Directory" - wp core install-network --allow-root --title="$EE_WWW_DOMAIN" $WPSUBEE_DOMAINS &>> $EE_COMMAND_LOG || ee_lib_error "Unable To Setup WordPress SubDirectory Network" + wp core install-network --allow-root --title="$EE_WWW_DOMAIN" $EE_WP_SUBDOMAIN &>> $EE_COMMAND_LOG || ee_lib_error "Unable To Setup WordPress SubDirectory Network" sed -i "/WP_DEBUG/a \define('WP_ALLOW_MULTISITE', true);" /var/www/$EE_DOMAIN/wp-config.php sed -i "/WP_ALLOW_MULTISITE/a \define('WPMU_ACCEL_REDIRECT', true);" /var/www/$EE_DOMAIN/wp-config.php @@ -997,14 +997,14 @@ then # WordPress SubDirectory Variables if [ "$EESITECREATE" = "--wpsubdir" ] || [ "$EESITECREATE" = "--wpsubdirectory" ] then - NETWORKACTIVATE="--network" + EE_NETWORK_ACTIVATE="--network" fi # WordPress SubDomain Variables if [ "$EESITECREATE" = "--wpsubdom" ] || [ "$EESITECREATE" = "--wpsubdomain" ] then - NETWORKACTIVATE="--network" - WPSUBEE_DOMAINS="--subdomains" + EE_NETWORK_ACTIVATE="--network" + EE_WP_SUBDOMAIN="--subdomains" fi # USE DEFAULT WHEN POSSIBLES @@ -1027,11 +1027,11 @@ then # Configure Variable EE_NGINX_CONF=html/basic.conf - echo -e "EE_DOMAIN_CHECK = $EE_DOMAIN_CHECK \nEESITECREATE = $EESITECREATE \nWPCACHEOPTION = $WPCACHEOPTION \nNETWORKACTIVATE = $NETWORKACTIVATE \nWPSUBEE_DOMAINS = $WPSUBEE_DOMAINS \nEE_NGINX_CONF = $EE_NGINX_CONF" &>> $EE_COMMAND_LOG + echo -e "EE_DOMAIN_CHECK = $EE_DOMAIN_CHECK \nEESITECREATE = $EESITECREATE \nWPCACHEOPTION = $WPCACHEOPTION \nEE_NETWORK_ACTIVATE = $EE_NETWORK_ACTIVATE \nEE_WP_SUBDOMAIN = $EE_WP_SUBDOMAIN \nEE_NGINX_CONF = $EE_NGINX_CONF" &>> $EE_COMMAND_LOG # Setup HTML Nginx ee_lib_check_domain - EEee_mod_domain_setup + ee_mod_domain_setup PERMISSIONANDGIT # Display Success Message @@ -1042,11 +1042,11 @@ then # Configure Variable EE_NGINX_CONF=php/basic.conf - echo -e "EE_DOMAIN_CHECK = $EE_DOMAIN_CHECK \nEESITECREATE = $EESITECREATE \nWPCACHEOPTION = $WPCACHEOPTION \nNETWORKACTIVATE = $NETWORKACTIVATE \nWPSUBEE_DOMAINS = $WPSUBEE_DOMAINS \nEE_NGINX_CONF = $EE_NGINX_CONF" &>> $EE_COMMAND_LOG + echo -e "EE_DOMAIN_CHECK = $EE_DOMAIN_CHECK \nEESITECREATE = $EESITECREATE \nWPCACHEOPTION = $WPCACHEOPTION \nEE_NETWORK_ACTIVATE = $EE_NETWORK_ACTIVATE \nEE_WP_SUBDOMAIN = $EE_WP_SUBDOMAIN \nEE_NGINX_CONF = $EE_NGINX_CONF" &>> $EE_COMMAND_LOG # Setup PHP Nginx ee_lib_check_domain - EEee_mod_domain_setup + ee_mod_domain_setup PERMISSIONANDGIT # Display Success Message @@ -1057,11 +1057,11 @@ then # Configure Variable EE_NGINX_CONF=mysql/basic.conf - echo -e "EE_DOMAIN_CHECK = $EE_DOMAIN_CHECK \nEESITECREATE = $EESITECREATE \nWPCACHEOPTION = $WPCACHEOPTION \nNETWORKACTIVATE = $NETWORKACTIVATE \nWPSUBEE_DOMAINS = $WPSUBEE_DOMAINS \nEE_NGINX_CONF = $EE_NGINX_CONF" &>> $EE_COMMAND_LOG + echo -e "EE_DOMAIN_CHECK = $EE_DOMAIN_CHECK \nEESITECREATE = $EESITECREATE \nWPCACHEOPTION = $WPCACHEOPTION \nEE_NETWORK_ACTIVATE = $EE_NETWORK_ACTIVATE \nEE_WP_SUBDOMAIN = $EE_WP_SUBDOMAIN \nEE_NGINX_CONF = $EE_NGINX_CONF" &>> $EE_COMMAND_LOG # Setup PHP Nginx ee_lib_check_domain - EEee_mod_domain_setup + ee_mod_domain_setup PERMISSIONANDGIT # Call MYSQLINFO Function For MySQL Values @@ -1083,7 +1083,7 @@ then # Configure Variable EE_NGINX_CONF=wp/basic.conf - echo -e "EE_DOMAIN_CHECK = $EE_DOMAIN_CHECK \nEESITECREATE = $EESITECREATE \nWPCACHEOPTION = $WPCACHEOPTION \nNETWORKACTIVATE = $NETWORKACTIVATE \nWPSUBEE_DOMAINS = $WPSUBEE_DOMAINS \nEE_NGINX_CONF = $EE_NGINX_CONF" &>> $EE_COMMAND_LOG + echo -e "EE_DOMAIN_CHECK = $EE_DOMAIN_CHECK \nEESITECREATE = $EESITECREATE \nWPCACHEOPTION = $WPCACHEOPTION \nEE_NETWORK_ACTIVATE = $EE_NETWORK_ACTIVATE \nEE_WP_SUBDOMAIN = $EE_WP_SUBDOMAIN \nEE_NGINX_CONF = $EE_NGINX_CONF" &>> $EE_COMMAND_LOG # Setup Basic Nginx SETUP_DOMAIN @@ -1101,7 +1101,7 @@ then # Configure Variable EE_NGINX_CONF=wp/w3tc.conf - echo -e "EE_DOMAIN_CHECK = $EE_DOMAIN_CHECK \nEESITECREATE = $EESITECREATE \nWPCACHEOPTION = $WPCACHEOPTION \nNETWORKACTIVATE = $NETWORKACTIVATE \nWPSUBEE_DOMAINS = $WPSUBEE_DOMAINS \nEE_NGINX_CONF = $EE_NGINX_CONF" &>> $EE_COMMAND_LOG + echo -e "EE_DOMAIN_CHECK = $EE_DOMAIN_CHECK \nEESITECREATE = $EESITECREATE \nWPCACHEOPTION = $WPCACHEOPTION \nEE_NETWORK_ACTIVATE = $EE_NETWORK_ACTIVATE \nEE_WP_SUBDOMAIN = $EE_WP_SUBDOMAIN \nEE_NGINX_CONF = $EE_NGINX_CONF" &>> $EE_COMMAND_LOG # Setup W3 Total Cache Nginx SETUP_DOMAIN @@ -1127,7 +1127,7 @@ then # Configure Variable EE_NGINX_CONF=wp/wpsc.conf - echo -e "EE_DOMAIN_CHECK = $EE_DOMAIN_CHECK \nEESITECREATE = $EESITECREATE \nWPCACHEOPTION = $WPCACHEOPTION \nNETWORKACTIVATE = $NETWORKACTIVATE \nWPSUBEE_DOMAINS = $WPSUBEE_DOMAINS \nEE_NGINX_CONF = $EE_NGINX_CONF" &>> $EE_COMMAND_LOG + echo -e "EE_DOMAIN_CHECK = $EE_DOMAIN_CHECK \nEESITECREATE = $EESITECREATE \nWPCACHEOPTION = $WPCACHEOPTION \nEE_NETWORK_ACTIVATE = $EE_NETWORK_ACTIVATE \nEE_WP_SUBDOMAIN = $EE_WP_SUBDOMAIN \nEE_NGINX_CONF = $EE_NGINX_CONF" &>> $EE_COMMAND_LOG # Setup WP Super Cache Nginx SETUP_DOMAIN @@ -1153,7 +1153,7 @@ then # Configure Variable EE_NGINX_CONF=wp/wpfc.conf - echo -e "EE_DOMAIN_CHECK = $EE_DOMAIN_CHECK \nEESITECREATE = $EESITECREATE \nWPCACHEOPTION = $WPCACHEOPTION \nNETWORKACTIVATE = $NETWORKACTIVATE \nWPSUBEE_DOMAINS = $WPSUBEE_DOMAINS \nEE_NGINX_CONF = $EE_NGINX_CONF" &>> $EE_COMMAND_LOG + echo -e "EE_DOMAIN_CHECK = $EE_DOMAIN_CHECK \nEESITECREATE = $EESITECREATE \nWPCACHEOPTION = $WPCACHEOPTION \nEE_NETWORK_ACTIVATE = $EE_NETWORK_ACTIVATE \nEE_WP_SUBDOMAIN = $EE_WP_SUBDOMAIN \nEE_NGINX_CONF = $EE_NGINX_CONF" &>> $EE_COMMAND_LOG # Setup Fastcgi Cache Nginx SETUP_DOMAIN @@ -1185,7 +1185,7 @@ then # Configure Variable EE_NGINX_CONF=wpsubdir/basic.conf - echo -e "EE_DOMAIN_CHECK = $EE_DOMAIN_CHECK \nEESITECREATE = $EESITECREATE \nWPCACHEOPTION = $WPCACHEOPTION \nNETWORKACTIVATE = $NETWORKACTIVATE \nWPSUBEE_DOMAINS = $WPSUBEE_DOMAINS \nEE_NGINX_CONF = $EE_NGINX_CONF" &>> $EE_COMMAND_LOG + echo -e "EE_DOMAIN_CHECK = $EE_DOMAIN_CHECK \nEESITECREATE = $EESITECREATE \nWPCACHEOPTION = $WPCACHEOPTION \nEE_NETWORK_ACTIVATE = $EE_NETWORK_ACTIVATE \nEE_WP_SUBDOMAIN = $EE_WP_SUBDOMAIN \nEE_NGINX_CONF = $EE_NGINX_CONF" &>> $EE_COMMAND_LOG # Setup Domain WordPress & Database SETUP_DOMAIN @@ -1208,7 +1208,7 @@ then # Configure Variable EE_NGINX_CONF=wpsubdir/w3tc.conf - echo -e "EE_DOMAIN_CHECK = $EE_DOMAIN_CHECK \nEESITECREATE = $EESITECREATE \nWPCACHEOPTION = $WPCACHEOPTION \nNETWORKACTIVATE = $NETWORKACTIVATE \nWPSUBEE_DOMAINS = $WPSUBEE_DOMAINS \nEE_NGINX_CONF = $EE_NGINX_CONF" &>> $EE_COMMAND_LOG + echo -e "EE_DOMAIN_CHECK = $EE_DOMAIN_CHECK \nEESITECREATE = $EESITECREATE \nWPCACHEOPTION = $WPCACHEOPTION \nEE_NETWORK_ACTIVATE = $EE_NETWORK_ACTIVATE \nEE_WP_SUBDOMAIN = $EE_WP_SUBDOMAIN \nEE_NGINX_CONF = $EE_NGINX_CONF" &>> $EE_COMMAND_LOG # Setup Domain WordPress & Database SETUP_DOMAIN @@ -1239,7 +1239,7 @@ then # Configure Variable EE_NGINX_CONF=wpsubdir/wpsc.conf - echo -e "EE_DOMAIN_CHECK = $EE_DOMAIN_CHECK \nEESITECREATE = $EESITECREATE \nWPCACHEOPTION = $WPCACHEOPTION \nNETWORKACTIVATE = $NETWORKACTIVATE \nWPSUBEE_DOMAINS = $WPSUBEE_DOMAINS \nEE_NGINX_CONF = $EE_NGINX_CONF" &>> $EE_COMMAND_LOG + echo -e "EE_DOMAIN_CHECK = $EE_DOMAIN_CHECK \nEESITECREATE = $EESITECREATE \nWPCACHEOPTION = $WPCACHEOPTION \nEE_NETWORK_ACTIVATE = $EE_NETWORK_ACTIVATE \nEE_WP_SUBDOMAIN = $EE_WP_SUBDOMAIN \nEE_NGINX_CONF = $EE_NGINX_CONF" &>> $EE_COMMAND_LOG # Setup Domain WordPress & Database SETUP_DOMAIN @@ -1270,7 +1270,7 @@ then # Configure Variable EE_NGINX_CONF=wpsubdir/wpfc.conf - echo -e "EE_DOMAIN_CHECK = $EE_DOMAIN_CHECK \nEESITECREATE = $EESITECREATE \nWPCACHEOPTION = $WPCACHEOPTION \nNETWORKACTIVATE = $NETWORKACTIVATE \nWPSUBEE_DOMAINS = $WPSUBEE_DOMAINS \nEE_NGINX_CONF = $EE_NGINX_CONF" &>> $EE_COMMAND_LOG + echo -e "EE_DOMAIN_CHECK = $EE_DOMAIN_CHECK \nEESITECREATE = $EESITECREATE \nWPCACHEOPTION = $WPCACHEOPTION \nEE_NETWORK_ACTIVATE = $EE_NETWORK_ACTIVATE \nEE_WP_SUBDOMAIN = $EE_WP_SUBDOMAIN \nEE_NGINX_CONF = $EE_NGINX_CONF" &>> $EE_COMMAND_LOG # Setup Domain WordPress & Database SETUP_DOMAIN @@ -1307,7 +1307,7 @@ then # Configure Variable EE_NGINX_CONF=wpsubdomain/basic.conf - echo -e "EE_DOMAIN_CHECK = $EE_DOMAIN_CHECK \nEESITECREATE = $EESITECREATE \nWPCACHEOPTION = $WPCACHEOPTION \nNETWORKACTIVATE = $NETWORKACTIVATE \nWPSUBEE_DOMAINS = $WPSUBEE_DOMAINS \nEE_NGINX_CONF = $EE_NGINX_CONF" &>> $EE_COMMAND_LOG + echo -e "EE_DOMAIN_CHECK = $EE_DOMAIN_CHECK \nEESITECREATE = $EESITECREATE \nWPCACHEOPTION = $WPCACHEOPTION \nEE_NETWORK_ACTIVATE = $EE_NETWORK_ACTIVATE \nEE_WP_SUBDOMAIN = $EE_WP_SUBDOMAIN \nEE_NGINX_CONF = $EE_NGINX_CONF" &>> $EE_COMMAND_LOG # Setup Domain WordPress & Database SETUP_DOMAIN @@ -1330,7 +1330,7 @@ then # Configure Variable EE_NGINX_CONF=wpsubdomain/w3tc.conf - echo -e "EE_DOMAIN_CHECK = $EE_DOMAIN_CHECK \nEESITECREATE = $EESITECREATE \nWPCACHEOPTION = $WPCACHEOPTION \nNETWORKACTIVATE = $NETWORKACTIVATE \nWPSUBEE_DOMAINS = $WPSUBEE_DOMAINS \nEE_NGINX_CONF = $EE_NGINX_CONF" &>> $EE_COMMAND_LOG + echo -e "EE_DOMAIN_CHECK = $EE_DOMAIN_CHECK \nEESITECREATE = $EESITECREATE \nWPCACHEOPTION = $WPCACHEOPTION \nEE_NETWORK_ACTIVATE = $EE_NETWORK_ACTIVATE \nEE_WP_SUBDOMAIN = $EE_WP_SUBDOMAIN \nEE_NGINX_CONF = $EE_NGINX_CONF" &>> $EE_COMMAND_LOG # Setup Domain WordPress & Database SETUP_DOMAIN @@ -1361,7 +1361,7 @@ then # Configure Variable EE_NGINX_CONF=wpsubdomain/wpsc.conf - echo -e "EE_DOMAIN_CHECK = $EE_DOMAIN_CHECK \nEESITECREATE = $EESITECREATE \nWPCACHEOPTION = $WPCACHEOPTION \nNETWORKACTIVATE = $NETWORKACTIVATE \nWPSUBEE_DOMAINS = $WPSUBEE_DOMAINS \nEE_NGINX_CONF = $EE_NGINX_CONF" &>> $EE_COMMAND_LOG + echo -e "EE_DOMAIN_CHECK = $EE_DOMAIN_CHECK \nEESITECREATE = $EESITECREATE \nWPCACHEOPTION = $WPCACHEOPTION \nEE_NETWORK_ACTIVATE = $EE_NETWORK_ACTIVATE \nEE_WP_SUBDOMAIN = $EE_WP_SUBDOMAIN \nEE_NGINX_CONF = $EE_NGINX_CONF" &>> $EE_COMMAND_LOG # Setup Domain WordPress & Database SETUP_DOMAIN @@ -1392,7 +1392,7 @@ then # Configure Variable EE_NGINX_CONF=wpsubdomain/wpfc.conf - echo -e "EE_DOMAIN_CHECK = $EE_DOMAIN_CHECK \nEESITECREATE = $EESITECREATE \nWPCACHEOPTION = $WPCACHEOPTION \nNETWORKACTIVATE = $NETWORKACTIVATE \nWPSUBEE_DOMAINS = $WPSUBEE_DOMAINS \nEE_NGINX_CONF = $EE_NGINX_CONF" &>> $EE_COMMAND_LOG + echo -e "EE_DOMAIN_CHECK = $EE_DOMAIN_CHECK \nEESITECREATE = $EESITECREATE \nWPCACHEOPTION = $WPCACHEOPTION \nEE_NETWORK_ACTIVATE = $EE_NETWORK_ACTIVATE \nEE_WP_SUBDOMAIN = $EE_WP_SUBDOMAIN \nEE_NGINX_CONF = $EE_NGINX_CONF" &>> $EE_COMMAND_LOG # Setup Domain WordPress & Database SETUP_DOMAIN