Skip to content

Instantly share code, notes, and snippets.

@csandanov
Last active June 21, 2017 05:39
Show Gist options
  • Save csandanov/72d6e5d9bfd857491a87fa9131e5728c to your computer and use it in GitHub Desktop.
Save csandanov/72d6e5d9bfd857491a87fa9131e5728c to your computer and use it in GitHub Desktop.
Check if Drupal 7 is installed when db credentials specified
--- includes/bootstrap.inc (revision f1c0124ff5118a1b66bff99fb45bd5c3ed5acbab)
+++ includes/bootstrap.inc (revision )
@@ -2745,6 +2745,11 @@
if (version_compare(PHP_VERSION, '5.4') >= 0) {
spl_autoload_register('drupal_autoload_trait');
}
+
+ if (!db_table_exists('semaphore')) {
+ include_once DRUPAL_ROOT . '/includes/install.inc';
+ install_goto('install.php');
+ }
}
/**
@csandanov
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment