Commit 704d752b6855780013403f6401fb340ffcfb2113
1 parent
bd3f2f06
Exists in
master
and in
49 other branches
Use gitlab user and home to run bundle
(cherry picked from commit 1c4e929b33c856bf4ae87dafaf9121117bf7149c)
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 | 100 | end |
| 101 | 101 | |
| 102 | 102 | execute 'fix-relative-url-for-assets' do |
| 103 | + user 'git' | |
| 104 | + cwd '/usr/lib/gitlab' | |
| 103 | 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 | 107 | end | ... | ... |