Mitesh Shah
11 years ago
3 changed files with 39 additions and 0 deletions
@ -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 = " $? |
||||
|
} |
@ -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 = " $? |
||||
|
} |
@ -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…
Reference in new issue