Skip to content

Instantly share code, notes, and snippets.

@amitaibu
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amitaibu/9616193 to your computer and use it in GitHub Desktop.
Save amitaibu/9616193 to your computer and use it in GitHub Desktop.
diff --git a/commands/core/site_install.drush.inc b/commands/core/site_install.drush.inc
index 420c4cd..f19eac2 100644
--- a/commands/core/site_install.drush.inc
+++ b/commands/core/site_install.drush.inc
@@ -51,6 +51,7 @@ function drush_core_pre_site_install($profile = NULL) {
return drush_user_abort();
}
+
// Can't install without sites subdirectory and settings.php.
if (!file_exists($conf_path)) {
if (!drush_mkdir($conf_path) && !drush_get_context('DRUSH_SIMULATE')) {
@@ -166,6 +167,9 @@ function drush_core_pre_site_install($profile = NULL) {
* Command callback.
*/
function drush_core_site_install($profile = NULL) {
+ // Override to make sure we can install the distribution without timeoutes.
+ @set_time_limit(900);
+
$args = func_get_args();
$form_options = array();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment