Last active
June 21, 2017 05:39
-
-
Save csandanov/72d6e5d9bfd857491a87fa9131e5728c to your computer and use it in GitHub Desktop.
Check if Drupal 7 is installed when db credentials specified
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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'); | |
+ } | |
} | |
/** |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Used in https://github.com/wodby/drupal