Commit c5d0378f9a2cb8365d2a950f7bd55efa16abcefe
1 parent
c6ac103e
Exists in
master
and in
39 other branches
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 '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' | ... | ... |