diff options
| author | 3kami3 <github@yumimix.org> | 2016-01-19 22:17:21 +0900 |
|---|---|---|
| committer | Rémy Coutable <remy@rymai.me> | 2016-02-08 18:26:29 +0100 |
| commit | cdcedd5b26fcabba451747f37fd2942fe6775410 (patch) | |
| tree | c4a0445090ba3fd83a45ea73a2d725bab486b600 /db | |
| parent | 66fe68ac7c29fedfd000373b99e6f9616d72ff8e (diff) | |
| download | gitlab-ce-cdcedd5b26fcabba451747f37fd2942fe6775410.tar.gz | |
Add an option to supply root email through an environmental variable.3kami3/gitlab-ce-root_email
Diffstat (limited to 'db')
| -rw-r--r-- | db/fixtures/production/001_admin.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/db/fixtures/production/001_admin.rb b/db/fixtures/production/001_admin.rb index b0c0b6450f6..308b0528c9b 100644 --- a/db/fixtures/production/001_admin.rb +++ b/db/fixtures/production/001_admin.rb @@ -6,8 +6,10 @@ else expire_time = nil end +email = ENV['GITLAB_ROOT_EMAIL'].presence || 'admin@example.com' + admin = User.create( - email: "admin@example.com", + email: email, name: "Administrator", username: 'root', password: password, |
