diff options
-rwxr-xr-x | docker/generate_bmo_data.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docker/generate_bmo_data.pl b/docker/generate_bmo_data.pl index 90294c080..d5d7f0eef 100755 --- a/docker/generate_bmo_data.pl +++ b/docker/generate_bmo_data.pl @@ -27,7 +27,8 @@ my $dbh = Bugzilla->dbh; # set Bugzilla usage mode to USAGE_MODE_CMDLINE Bugzilla->usage_mode(USAGE_MODE_CMDLINE); -Bugzilla->set_user(Bugzilla::User->new({ name => 'admin@mozilla.bugs' })); +my $admin_email = shift || 'admin@mozilla.bugs'; +Bugzilla->set_user(Bugzilla::User->check({ name => $admin_email })); ########################################################################## # Set Default User Preferences |