Commit c33315da authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2125407 by moshe weitzman: Don't redirect CLI requests to install.php.

parent 3bcad724
......@@ -1976,7 +1976,7 @@ function _drupal_bootstrap_configuration() {
// Redirect the user to the installation script if Drupal has not been
// installed yet (i.e., if no $databases array has been defined in the
// settings.php file) and we are not already installing.
if (empty($GLOBALS['databases']) && !drupal_installation_attempted()) {
if (empty($GLOBALS['databases']) && !drupal_installation_attempted() && !drupal_is_cli()) {
include_once __DIR__ . '/';
Supports Markdown
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