Browse Source

Added WordPress plugin installation during ee site migrate

bugfixes
gau1991 10 years ago
parent
commit
a95407ceac
  1. 5
      bin/easyengine
  2. 3
      src/modules/site/create/ee_mod_plugin_settings.sh
  3. 12
      src/modules/site/migrate/ee_mod_migrate_setup.sh

5
bin/easyengine

@ -782,7 +782,10 @@ elif [ "$EE_FIRST" = "site" ]; then
# Setup migration
ee_mod_migrate_setup
# Setup site
# Display WordPress cache plugin settings
ee_mod_plugin_settings
# Successfully message
ee_lib_echo_info "Successfully migrated site $EE_DOMAIN"
else

3
src/modules/site/create/ee_mod_plugin_settings.sh

@ -1,6 +1,7 @@
# Display WordPress cache plugin settings
function ee_mod_plugin_settings() {
function ee_mod_plugin_settings()
{
if [ "$EE_SITE_CACHE_OPTION" = "--wpsc" ]; then
if [ "$EE_SITE_CREATE_OPTION" = "--wpsubdir" ] || [ "$EE_SITE_CREATE_OPTION" = "--wpsubdomain" ]; then
ee_lib_echo_escape "Configure WPSC:\t\thttp://$EE_DOMAIN/wp-admin/network/settings.php?page=wpsupercache"

12
src/modules/site/migrate/ee_mod_migrate_setup.sh

@ -26,6 +26,18 @@ function ee_mod_migrate_setup()
pv $EE_MYSQL_PATH | mysql $EE_DB_NAME \
|| ee_lib_error "Unable to import database, exit status = " $?
fi
# Install WordPress plugins
ee_mod_plugin_nginx_helper
if [ "$EE_SITE_CACHE_OPTION" = "--wpsc" ]; then
ee_mod_plugin_wpsc
fi
if [ "$EE_SITE_CACHE_OPTION" = "--w3tc" ] || [ "$EE_SITE_CACHE_OPTION" = "--wpfc" ]; then
ee_mod_plugin_w3tc
fi
fi
# Setup database for MySQL site

Loading…
Cancel
Save