Commit e54d8222a9ae3f92b5d6f059e01f0c8534fc2b0a
Committed by
Paulo Tada
1 parent
07f10e60
Exists in
mezuro_cookbook
Use gitlab user and home to run bundle
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
cookbooks/gitlab/recipes/default.rb
| @@ -100,6 +100,8 @@ execute 'selinux-gitlab' do | @@ -100,6 +100,8 @@ execute 'selinux-gitlab' do | ||
| 100 | end | 100 | end |
| 101 | 101 | ||
| 102 | execute 'fix-relative-url-for-assets' do | 102 | execute 'fix-relative-url-for-assets' do |
| 103 | + user 'git' | ||
| 104 | + cwd '/usr/lib/gitlab' | ||
| 103 | command 'sed -i \'s/# config.relative_url_root = "\/gitlab"/config.relative_url_root = "\/gitlab"/\' /usr/lib/gitlab/config/application.rb' | 105 | command 'sed -i \'s/# config.relative_url_root = "\/gitlab"/config.relative_url_root = "\/gitlab"/\' /usr/lib/gitlab/config/application.rb' |
| 104 | - command 'sudo -u git -H bundle exec rake assets:precompile RAILS_ENV=production' | 106 | + command 'bundle exec rake assets:precompile RAILS_ENV=production' |
| 105 | end | 107 | end |