From c5d0378f9a2cb8365d2a950f7bd55efa16abcefe Mon Sep 17 00:00:00 2001 From: David Carlos Date: Mon, 14 Dec 2015 17:50:08 -0200 Subject: [PATCH] Change gitlab cache dir owner. --- cookbooks/gitlab/recipes/default.rb | 5 +++++ 1 file changed, 5 insertions(+), 0 deletions(-) diff --git a/cookbooks/gitlab/recipes/default.rb b/cookbooks/gitlab/recipes/default.rb index 3993256..d640e3d 100644 --- a/cookbooks/gitlab/recipes/default.rb +++ b/cookbooks/gitlab/recipes/default.rb @@ -105,6 +105,11 @@ execute 'fix-relative-url-for-assets' do notifies :run, 'execute[precompile-assets]' end +execute 'change-cache-owner' do + command 'chown -R git:git /usr/lib/gitlab/tmp/cache' + only_if 'ls -l /usr/lib/gitlab/tmp/cache | grep root' +end + execute 'precompile-assets' do user 'git' cwd '/usr/lib/gitlab' -- libgit2 0.21.2