Commit 1a89b572a24aae62395fe78d0493fc238b80a7a6

Authored by Lucas Kanashiro
2 parents 738de186 c5d0378f

Merge branch 'gitlab_tmp_cache_dir' into 'master'

Gitlab tmp cache dir

Changes gitlab tmp/cache dir owner. The prcompile task is executed with git user, but gitlab creates the cache dir with root owner.

See merge request !137
Showing 1 changed file with 5 additions and 0 deletions   Show diff stats
cookbooks/gitlab/recipes/default.rb
... ... @@ -105,6 +105,11 @@ execute 'fix-relative-url-for-assets' do
105 105 notifies :run, 'execute[precompile-assets]'
106 106 end
107 107  
  108 +execute 'change-cache-owner' do
  109 + command 'chown -R git:git /usr/lib/gitlab/tmp/cache'
  110 + only_if 'ls -l /usr/lib/gitlab/tmp/cache | grep root'
  111 +end
  112 +
108 113 execute 'precompile-assets' do
109 114 user 'git'
110 115 cwd '/usr/lib/gitlab'
... ...