Commit 851fcc96 authored by anarcat's avatar anarcat Committed by anarcat
Browse files

use a more reasonable default email than

we use if we're installing on localhost and
webmaster@$aegir_host otherwise
parent 99d7cf2b
......@@ -43,8 +43,13 @@ Don't worry: you will get to review those settings after the final install");
print "\n"; // add a newline since the user's didn't print
if ($aegir_host == 'localhost') {
$default_email = '';
} else {
$default_email = 'webmaster@' . $aegir_host;
while (!filter_var(drush_get_option('client_email'), FILTER_VALIDATE_EMAIL)) {
$client_email = drush_prompt(dt("Admin user e-mail"), "");
$client_email = drush_prompt(dt("Admin user e-mail"), $default_email);
drush_set_option('client_email', $client_email);
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