Commit 1c4e929b33c856bf4ae87dafaf9121117bf7149c
1 parent
68f0393c
Exists in
master
and in
24 other branches
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 |