Commit 0ed84fb9 authored by npacker's avatar npacker Committed by helmo

Issue #2617718 by npacker, gboudrias: Renaming site through Migrate doesn't...

Issue #2617718 by npacker, gboudrias: Renaming site through Migrate doesn't remove old vhost or site folder
parent 951c5e33
......@@ -33,6 +33,9 @@ function drush_provision_drupal_pre_provision_migrate($platform, $new_name = NUL
if (!is_null($new_name) && ($new_name != d()->name)) {
drush_set_option('target_name', $new_name);
drush_set_option('source_name', d()->uri);
}
else {
drush_set_option('target_name', d()->name);
// Detect if the platform stays the same.
if (d()->platform->name == $platform) {
......@@ -41,11 +44,6 @@ function drush_provision_drupal_pre_provision_migrate($platform, $new_name = NUL
drush_set_option('deploy_replace_site', TRUE);
}
}
else {
// The site url stays the same, so the target platform
// must be different if we run Migrate task, right?
drush_set_option('target_name', d()->name);
}
}
/**
......
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