From a9bb455608db70c76545e5862b89a02f9e9f590d Mon Sep 17 00:00:00 2001 From: Greg Anderson Date: Thu, 27 Aug 2015 15:49:26 -0700 Subject: [PATCH] Prevent redirect to core/install.php when called by Drush. --- sites/default/settings.pantheon.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sites/default/settings.pantheon.php b/sites/default/settings.pantheon.php index 879018271..8a24af4c6 100644 --- a/sites/default/settings.pantheon.php +++ b/sites/default/settings.pantheon.php @@ -57,7 +57,7 @@ if (isset($_ENV['PANTHEON_ENVIRONMENT'])) { * c.f. https://github.com/pantheon-systems/drops-8/pull/53 * */ -if (isset($_ENV['PANTHEON_ENVIRONMENT']) && (substr($_SERVER['SCRIPT_NAME'],0,17) != '/core/install.php') && (!is_dir(__DIR__ . '/files/styles'))) { +if (isset($_ENV['PANTHEON_ENVIRONMENT']) && (substr($_SERVER['SCRIPT_NAME'],0,17) != '/core/install.php') && (!is_dir(__DIR__ . '/files/styles')) && (php_sapi_name() != "cli")) { include_once __DIR__ . '/../../core/includes/install.core.inc'; include_once __DIR__ . '/../../core/includes/install.inc'; install_goto('core/install.php');