Browse Source

Search/Replace

old-stable
Mitesh Shah 11 years ago
parent
commit
81c77537c7
  1. 52
      bin/ee

52
bin/ee

@ -370,7 +370,7 @@ SETUP_DOMAIN()
ee_lib_check_domain ee_lib_check_domain
# Creating Website $EE_DOMAIN # Creating Website $EE_DOMAIN
EEee_mod_domain_setup ee_mod_domain_setup
# Setup WordPress Webroot & Database # Setup WordPress Webroot & Database
ee_mod_setup_wordpress 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" 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 # 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() 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" 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 # 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() NGINXHELPER()
@ -418,7 +418,7 @@ NGINXHELPER()
wp plugin --allow-root install nginx-helper &>> $EE_COMMAND_LOG || ee_lib_error "Unable To Install Nginx Helper" wp plugin --allow-root install nginx-helper &>> $EE_COMMAND_LOG || ee_lib_error "Unable To Install Nginx Helper"
# Activate 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 # Prepare wp-config.php File Foe WordPress Multisite With SubDirectory
cd /var/www/$EE_DOMAIN/htdocs || ee_lib_error "Unable To Change Directory" 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_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 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 # WordPress SubDirectory Variables
if [ "$EESITECREATE" = "--wpsubdir" ] || [ "$EESITECREATE" = "--wpsubdirectory" ] if [ "$EESITECREATE" = "--wpsubdir" ] || [ "$EESITECREATE" = "--wpsubdirectory" ]
then then
NETWORKACTIVATE="--network" EE_NETWORK_ACTIVATE="--network"
fi fi
# WordPress SubDomain Variables # WordPress SubDomain Variables
if [ "$EESITECREATE" = "--wpsubdom" ] || [ "$EESITECREATE" = "--wpsubdomain" ] if [ "$EESITECREATE" = "--wpsubdom" ] || [ "$EESITECREATE" = "--wpsubdomain" ]
then then
NETWORKACTIVATE="--network" EE_NETWORK_ACTIVATE="--network"
WPSUBEE_DOMAINS="--subdomains" EE_WP_SUBDOMAIN="--subdomains"
fi fi
# USE DEFAULT WHEN POSSIBLES # USE DEFAULT WHEN POSSIBLES
@ -1027,11 +1027,11 @@ then
# Configure Variable # Configure Variable
EE_NGINX_CONF=html/basic.conf 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 # Setup HTML Nginx
ee_lib_check_domain ee_lib_check_domain
EEee_mod_domain_setup ee_mod_domain_setup
PERMISSIONANDGIT PERMISSIONANDGIT
# Display Success Message # Display Success Message
@ -1042,11 +1042,11 @@ then
# Configure Variable # Configure Variable
EE_NGINX_CONF=php/basic.conf 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 # Setup PHP Nginx
ee_lib_check_domain ee_lib_check_domain
EEee_mod_domain_setup ee_mod_domain_setup
PERMISSIONANDGIT PERMISSIONANDGIT
# Display Success Message # Display Success Message
@ -1057,11 +1057,11 @@ then
# Configure Variable # Configure Variable
EE_NGINX_CONF=mysql/basic.conf 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 # Setup PHP Nginx
ee_lib_check_domain ee_lib_check_domain
EEee_mod_domain_setup ee_mod_domain_setup
PERMISSIONANDGIT PERMISSIONANDGIT
# Call MYSQLINFO Function For MySQL Values # Call MYSQLINFO Function For MySQL Values
@ -1083,7 +1083,7 @@ then
# Configure Variable # Configure Variable
EE_NGINX_CONF=wp/basic.conf 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 Basic Nginx
SETUP_DOMAIN SETUP_DOMAIN
@ -1101,7 +1101,7 @@ then
# Configure Variable # Configure Variable
EE_NGINX_CONF=wp/w3tc.conf 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 W3 Total Cache Nginx
SETUP_DOMAIN SETUP_DOMAIN
@ -1127,7 +1127,7 @@ then
# Configure Variable # Configure Variable
EE_NGINX_CONF=wp/wpsc.conf 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 WP Super Cache Nginx
SETUP_DOMAIN SETUP_DOMAIN
@ -1153,7 +1153,7 @@ then
# Configure Variable # Configure Variable
EE_NGINX_CONF=wp/wpfc.conf 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 Fastcgi Cache Nginx
SETUP_DOMAIN SETUP_DOMAIN
@ -1185,7 +1185,7 @@ then
# Configure Variable # Configure Variable
EE_NGINX_CONF=wpsubdir/basic.conf 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 WordPress & Database
SETUP_DOMAIN SETUP_DOMAIN
@ -1208,7 +1208,7 @@ then
# Configure Variable # Configure Variable
EE_NGINX_CONF=wpsubdir/w3tc.conf 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 WordPress & Database
SETUP_DOMAIN SETUP_DOMAIN
@ -1239,7 +1239,7 @@ then
# Configure Variable # Configure Variable
EE_NGINX_CONF=wpsubdir/wpsc.conf 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 WordPress & Database
SETUP_DOMAIN SETUP_DOMAIN
@ -1270,7 +1270,7 @@ then
# Configure Variable # Configure Variable
EE_NGINX_CONF=wpsubdir/wpfc.conf 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 WordPress & Database
SETUP_DOMAIN SETUP_DOMAIN
@ -1307,7 +1307,7 @@ then
# Configure Variable # Configure Variable
EE_NGINX_CONF=wpsubdomain/basic.conf 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 WordPress & Database
SETUP_DOMAIN SETUP_DOMAIN
@ -1330,7 +1330,7 @@ then
# Configure Variable # Configure Variable
EE_NGINX_CONF=wpsubdomain/w3tc.conf 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 WordPress & Database
SETUP_DOMAIN SETUP_DOMAIN
@ -1361,7 +1361,7 @@ then
# Configure Variable # Configure Variable
EE_NGINX_CONF=wpsubdomain/wpsc.conf 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 WordPress & Database
SETUP_DOMAIN SETUP_DOMAIN
@ -1392,7 +1392,7 @@ then
# Configure Variable # Configure Variable
EE_NGINX_CONF=wpsubdomain/wpfc.conf 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 WordPress & Database
SETUP_DOMAIN SETUP_DOMAIN

Loading…
Cancel
Save