Commit edbe42c0 authored by Jon Pugh's avatar Jon Pugh

Refactoring _provision_drupal_site_exists() to check for Drupal Bootstrap...

Refactoring _provision_drupal_site_exists() to check for Drupal Bootstrap instead if a settings.php file exists.
parent a312e9de
......@@ -72,13 +72,14 @@ function provision_drupal_drush_exit() {
* Test to see if the site settings.php exists
* Test to see if the site is fully installed by attempting to bootstrap drupal
* all the way to a Drupal Login. This only happens if a site is truly installed.
* @return
* If the file exists, return TRUE, else return FALSE.
function _provision_drupal_site_exists() {
return is_readable(d()->site_path . '/settings.php');
return drush_bootstrap_max() == DRUSH_BOOTSTRAP_DRUPAL_LOGIN;
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