Commit c5d0378f9a2cb8365d2a950f7bd55efa16abcefe

Authored by David Silva
1 parent c6ac103e

Change gitlab cache dir owner.

Signed-off-by: Lucas Severo <lucassalves65@gmail.com>
Signed-off-by: Alessando Caetano <alessandro.caetanob@gmail.com>
Showing 1 changed file with 5 additions and 0 deletions   Show diff stats
cookbooks/gitlab/recipes/default.rb
@@ -105,6 +105,11 @@ execute &#39;fix-relative-url-for-assets&#39; do @@ -105,6 +105,11 @@ execute &#39;fix-relative-url-for-assets&#39; do
105 notifies :run, 'execute[precompile-assets]' 105 notifies :run, 'execute[precompile-assets]'
106 end 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 execute 'precompile-assets' do 113 execute 'precompile-assets' do
109 user 'git' 114 user 'git'
110 cwd '/usr/lib/gitlab' 115 cwd '/usr/lib/gitlab'