Fixes #17: Pre-select the 'standard' installation profile.

This commit is contained in:
Greg Anderson 2015-08-26 15:25:53 -07:00
parent f7790fd297
commit ec97eb465a

View file

@ -37,6 +37,18 @@ if (isset($_ENV['PANTHEON_ENVIRONMENT'])) {
$GLOBALS['install_state']['settings_verified'] = TRUE; $GLOBALS['install_state']['settings_verified'] = TRUE;
} }
/**
* Pre-select the 'standard' installation profile. Drupal complains if we
* do not do this, and operational problems result.
*
* https://github.com/pantheon-systems/drops-8/issues/17
*/
if (isset($_ENV['PANTHEON_ENVIRONMENT'])) {
// Pre-select the standard profile
$GLOBALS['install_state']['profile_info']['distribution']['name'] = 'standard';
$GLOBALS['install_state']['parameters']['profile'] = 'standard';
}
/** /**
* Allow Drupal 8 to Cleanly Redirect to Install.php For New Sites. * Allow Drupal 8 to Cleanly Redirect to Install.php For New Sites.
* *