Commit b9933320 authored by Adrian Rossouw's avatar Adrian Rossouw Committed by adrian

Initial D7 install task support. does not work due to exception handling issue in core

parent 32e8bef3
This diff is collapsed.
......@@ -68,7 +68,7 @@ function drush_provision_drupal_post_provision_install($url) {
drush_set_option('aliases', drush_get_option('aliases'), 'site');
drush_set_option('installed', TRUE, 'site');
provision_path("chmod", "./sites/$url/settings.php", 0440, dt("Secured settings.php with safe permissions"));
_provision_drupal_rebuild_caches($url);
drush_set_option('packages', _scrub_object(provision_drupal_system_map()), 'site');
#_provision_drupal_rebuild_caches($url);
#drush_set_option('packages', _scrub_object(provision_drupal_system_map()), 'site');
}
......@@ -181,6 +181,11 @@ function _provision_drupal_default_template() {
function _provision_drupal_create_settings_file($url = NULL) {
$options = drush_get_merged_options();
// As of Drupal 7 there is no more mysqli type
if (drush_drupal_major_version() >= 7) {
$options['db_type'] = ($options['db_type'] == 'mysqli') ? 'mysql' : $options['db_type'];
}
$options['extra_config'] = "# Extra configuration from modules:\n";
foreach (drush_command_implements('provision_drupal_config') as $module) {
$options['extra_config'] .= "# -- $module settings --\n";
......
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