Commit 2718f61cecee216b750d89b178b3f7d46edc8ba3
1 parent
040ffe46
Exists in
master
and in
89 other branches
Fixed user and email address
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
cookbooks/colab/recipes/default.rb
| ... | ... | @@ -71,13 +71,13 @@ end |
| 71 | 71 | |
| 72 | 72 | execute 'create-admin-token-gitlab' do |
| 73 | 73 | user = "admin-gitlab" |
| 74 | - email = "admin-gitlab@admin.com" | |
| 74 | + email = "admin-gitlab@example.com" | |
| 75 | 75 | password = SecureRandom.random_number.to_s |
| 76 | 76 | |
| 77 | - command "RAILS_ENV=production bundle exec rails runner \"User.create(name: \'#{name}\', username: \'#{name}, email: #{email}, password: #{password}, admin: true)\"" | |
| 77 | + command "RAILS_ENV=production bundle exec rails runner \"User.create(name: \'#{user}\', username: \'#{user}, email: #{email}, password: #{password}, admin: true)\"" | |
| 78 | 78 | |
| 79 | 79 | user_exist = Dir.chdir '/usr/lib/gitlab' do |
| 80 | - `RAILS_ENV=production bundle exec rails runner \"puts User.find_by_email(\'admin-gitlab@admin.com).nil?\"`.strip | |
| 80 | + `RAILS_ENV=production bundle exec rails runner \"puts User.find_by_email(\'admin-gitlab@example.com).nil?\"`.strip | |
| 81 | 81 | end |
| 82 | 82 | |
| 83 | 83 | not_if {user_exist == "false"} |
| ... | ... | @@ -94,7 +94,7 @@ template '/etc/colab/settings.d/01-apps.yaml' do |
| 94 | 94 | |
| 95 | 95 | get_private_token = lambda do |
| 96 | 96 | Dir.chdir '/usr/lib/gitlab' do |
| 97 | - `sudo -u git RAILS_ENV=production bundle exec rails runner \"puts User.find_by_email(\'admin-gitlab@admin.com).private_token\"`.strip | |
| 97 | + `sudo -u git RAILS_ENV=production bundle exec rails runner \"puts User.find_by_email(\'admin-gitlab@example.com).private_token\"`.strip | |
| 98 | 98 | end |
| 99 | 99 | end |
| 100 | 100 | ... | ... |