diff --git a/core/lib/Drupal/Core/Command/DevInstallCommand.php b/core/lib/Drupal/Core/Command/DevInstallCommand.php index 93f0ce89e0..7eb73d939c 100644 --- a/core/lib/Drupal/Core/Command/DevInstallCommand.php +++ b/core/lib/Drupal/Core/Command/DevInstallCommand.php @@ -59,7 +59,7 @@ protected function execute(InputInterface $input, OutputInterface $output) { if (!$input->getOption('force') && $this->isDrupalInstalled()) { $question_helper = new QuestionHelper(); - if (!$question_helper->ask($input, $output, new ConfirmationQuestion('There is already an existing installation. Confirm whether you want to override it. (y/n)'))) { + if (!$question_helper->ask($input, $output, new ConfirmationQuestion('There is already an existing installation. Confirm whether you want to override it. (y/N) ', FALSE))) { return; } } @@ -76,7 +76,7 @@ protected function isDrupalInstalled() { $request = Request::createFromGlobals(); DrupalKernel::createFromRequest($request, $this->classLoader, 'prod'); - return ($connection = Database::getConnection()) && $connection->schema()->tableExists('sessions'); + return !empty(Database::getConnectionInfo()); } /**