Commit de49d1f3 authored by Tim Steiner's avatar Tim Steiner
Browse files

Merge pull request #420 from tsteiner2/issue-387

[gh-387] Pull Request into develop.
parents 737280dc 16cb48dc
......@@ -275,12 +275,9 @@ function unl_add_site($site_path, $uri, $clean_url, $db_prefix, $site_id) {
$sites_subdir = escapeshellarg($sites_subdir);
$db_url = escapeshellarg($db_url);
$db_prefix = escapeshellarg($db_prefix);
$site_mail = escapeshellarg(variable_get('site_mail'));
$site_mail = escapeshellarg('noreply@unl.edu');
$command = "$php_path sites/all/modules/drush/drush.php -y --uri=$uri site-install unl_profile --sites-subdir=$sites_subdir --db-url=$db_url --db-prefix=$db_prefix --clean-url=$clean_url 2>&1";
if ($site_mail) {
$command .= " --site-mail=$site_mail";
}
$command = "$php_path sites/all/modules/drush/drush.php -y --uri=$uri site-install unl_profile --sites-subdir=$sites_subdir --db-url=$db_url --db-prefix=$db_prefix --clean-url=$clean_url 2>&1 --site-mail=$site_mail";
$result = shell_exec($command);
echo $result;
......
Supports Markdown
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