Commit fbf627ff authored by Jon Pugh's avatar Jon Pugh

Check for site_install_method before rebuilding caches, saving packages, and...

Check for site_install_method before rebuilding caches, saving packages, and running cron because we might not have an installed site now.
parent 7a550519
......@@ -90,11 +90,15 @@ function drush_provision_drupal_provision_install() {
function drush_provision_drupal_post_provision_install() {
// If Drupal profile was installed, rebuild drupal caches and save enabled packages for aegir.
if (drush_get_option('installed', FALSE, 'site')) {
if (drush_get_option('site_install_method', 'profile') == 'profile' && drush_get_option('installed', FALSE, 'site')) {
_provision_drupal_rebuild_caches();
drush_set_option('packages', _scrub_object(provision_drupal_system_map()), 'site');
_provision_client_create_symlink();
drush_include_engine('drupal', 'cron_key');
}
// For all other install methods, just create the symlink.
else {
_provision_client_create_symlink();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment