Browse Source

Function for w3tc wpsc and nginx-helper plugin

old-stable
Mitesh Shah 11 years ago
parent
commit
04003ab474
  1. 13
      src/modules/site/create/ee_mod_plugin_nginx_helper.sh
  2. 13
      src/modules/site/create/ee_mod_plugin_w3tc.sh
  3. 13
      src/modules/site/create/ee_mod_plugin_wpsc.sh

13
src/modules/site/create/ee_mod_plugin_nginx_helper.sh

@ -0,0 +1,13 @@
# Setup NGINX Helper
function ee_mod_plugin_nginx_helper()
{
cd /var/www/$EE_DOMAIN/htdocs/
ee_lib_echo "Installing Nginx Helper plugin, please wait..."
wp plugin --allow-root install nginx-helper &>> $EE_COMMAND_LOG \
|| ee_lib_error "Unable to install Nginx Helper plugin, exit status = " $?
# Activate Nginx Helper
wp plugin --allow-root activate nginx-helper $EE_NETWORK_ACTIVATE &>> $EE_COMMAND_LOG \
|| ee_lib_error "Unable to activate Nginx Helper plugin, exit status = " $?
}

13
src/modules/site/create/ee_mod_plugin_w3tc.sh

@ -0,0 +1,13 @@
# Setup W3 Total Cache
function ee_mod_plugin_w3tc()
{
cd /var/www/$EE_DOMAIN/htdocs/
ee_lib_echo "Installing W3 Total Cache plugin, please wait..."
wp plugin --allow-root install w3-total-cache &>> $EE_COMMAND_LOG \
|| ee_lib_error "Unable to install W3 Total Cache plugin, exit status = " $?
# Activate W3 Total Cache
wp plugin --allow-root activate w3-total-cache $EE_NETWORK_ACTIVATE &>> $EE_COMMAND_LOG \
|| ee_lib_error "Unable to activate W3 Total Cache plugin, exit status = " $?
}

13
src/modules/site/create/ee_mod_plugin_wpsc.sh

@ -0,0 +1,13 @@
# Setup WP Super Cache
function ee_mod_plugin_wpsc()
{
cd /var/www/$EE_DOMAIN/htdocs/
ee_lib_echo "Installing WP Super Cache plugin, please wait..."
wp plugin --allow-root install wp-super-cache &>> $EE_COMMAND_LOG \
|| ee_lib_error "Unable to install WP Super Cache plugin, exit status = " $?
# Activate WP Super Cache
wp plugin --allow-root activate wp-super-cache $EE_NETWORK_ACTIVATE &>> $EE_COMMAND_LOG \
|| ee_lib_error "Unable to activate WP Super Cache plugin, exit status = " $?
}
Loading…
Cancel
Save