diff options
author | 3kami3 <github@yumimix.org> | 2016-01-19 16:17:21 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-02-08 20:26:29 +0300 |
commit | cdcedd5b26fcabba451747f37fd2942fe6775410 (patch) | |
tree | c4a0445090ba3fd83a45ea73a2d725bab486b600 /db/fixtures | |
parent | 66fe68ac7c29fedfd000373b99e6f9616d72ff8e (diff) |
Add an option to supply root email through an environmental variable.
Diffstat (limited to 'db/fixtures')
-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, |