Commit 599c1c05 authored by Adrian Rossouw's avatar Adrian Rossouw
Browse files

Support changing the install profile by specifying the profile option during migrate commands

parent 9a2b3447
...@@ -59,7 +59,7 @@ function drush_provision_drupal_pre_provision_migrate_rollback($url, $platform) ...@@ -59,7 +59,7 @@ function drush_provision_drupal_pre_provision_migrate_rollback($url, $platform)
function drush_provision_drupal_provision_migrate($url, $platform) { function drush_provision_drupal_provision_migrate($url, $platform) {
drush_backend_invoke('provision-deploy', array($url, drush_get_option('backup_file'), 'root' => $platform, drush_backend_invoke('provision-deploy', array($url, drush_get_option('backup_file'), 'root' => $platform,
'web_host' => drush_get_option('web_host'), 'web_ip' => drush_get_option('web_ip'), 'web_host' => drush_get_option('web_host'), 'web_ip' => drush_get_option('web_ip'),
'db_host' => drush_get_option('db_host'))); 'db_host' => drush_get_option('db_host'), 'profile' => drush_get_option('profile')));
} }
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
'%db_host' => '$_SERVER[db_host]', '%db_host' => '$_SERVER[db_host]',
'%db_name' => '$_SERVER[db_name]')); ?>"; '%db_name' => '$_SERVER[db_name]')); ?>";
$profile = "<?php print $profile ?>"; $profile = "<?php print $profile ?>";
/** /**
* PHP settings: * PHP settings:
...@@ -43,6 +44,7 @@ ...@@ -43,6 +44,7 @@
global $conf; global $conf;
$conf['install_profile'] = '<?php print $profile ?>';
$conf['file_directory_path'] = 'sites/<?php print $site_url ?>/files'; $conf['file_directory_path'] = 'sites/<?php print $site_url ?>/files';
$conf['file_directory_temp'] = 'sites/<?php print $site_url ?>/files/tmp'; $conf['file_directory_temp'] = 'sites/<?php print $site_url ?>/files/tmp';
$conf['file_downloads'] = 1; $conf['file_downloads'] = 1;
......
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