Commit a5ebd33fe6a29e4ce8bdb1e64acb4e8b8b644f4a
1 parent
bfca3524
Exists in
master
and in
23 other branches
Fixing gitlab assets permission
Signed-off-by: David Carlos <ddavidcarlos1392@gmail.com>
Showing
1 changed file
with
5 additions
and
0 deletions
Show diff stats
cookbooks/gitlab/recipes/default.rb
... | ... | @@ -110,6 +110,11 @@ execute 'change-cache-owner' do |
110 | 110 | only_if 'ls -l /usr/lib/gitlab/tmp/cache | grep root' |
111 | 111 | end |
112 | 112 | |
113 | +execute 'change-assets-owner' do | |
114 | + command 'chown -R git:git /usr/lib/gitlab/public/assets' | |
115 | + only_if 'ls -l /usr/lib/gitlab/public/assets | grep root' | |
116 | +end | |
117 | + | |
113 | 118 | execute 'precompile-assets' do |
114 | 119 | user 'git' |
115 | 120 | cwd '/usr/lib/gitlab' | ... | ... |