Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -275,12 +275,9 @@ function unl_add_site($site_path, $uri, $clean_url, $db_prefix, $site_id) { ...@@ -275,12 +275,9 @@ function unl_add_site($site_path, $uri, $clean_url, $db_prefix, $site_id) {
$sites_subdir = escapeshellarg($sites_subdir); $sites_subdir = escapeshellarg($sites_subdir);
$db_url = escapeshellarg($db_url); $db_url = escapeshellarg($db_url);
$db_prefix = escapeshellarg($db_prefix); $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"; $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";
if ($site_mail) {
$command .= " --site-mail=$site_mail";
}
$result = shell_exec($command); $result = shell_exec($command);
echo $result; echo $result;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment