From 4aaa541928433ced6cda522753e1f114d0ddf0ef Mon Sep 17 00:00:00 2001
From: Mathieu Lutfy <mathieu@bidon.ca>
Date: Tue, 21 May 2013 09:29:02 -0400
Subject: [PATCH] Do not send the drupal welcome e-mail on site-install

---
 tools/scripts/mk-drupal-test-site | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tools/scripts/mk-drupal-test-site b/tools/scripts/mk-drupal-test-site
index bef4bb04f3..dd9920d366 100755
--- a/tools/scripts/mk-drupal-test-site
+++ b/tools/scripts/mk-drupal-test-site
@@ -86,7 +86,10 @@ if [ -d "sites/$SITE_URL" ]; then
   chmod u+w "sites/$SITE_URL"
   rm -rf "sites/$SITE_URL"
 fi
-drush site-install -y \
+
+# NB: Avoid sending e-mails for the site installation
+# On hosts without sendmail (ex: demo sites), this causes the installation to fail.
+php -d sendmail_path=`which true` `which drush` site-install -y \
   --db-url="mysql://${DB_USER}:${DB_PASS}@${DB_HOST}/${DB_NAME}" \
   --account-name="$ADMIN_USER" \
   --account-pass="$ADMIN_PASS" \
-- 
GitLab