Commit 587da5606fd1a4ae8b5a1f38f082119918f14e27
Exists in
master
and in
22 other branches
Merge branch 'fix_gitlab_assets_permission' into 'master'
Fix gitlab assets permission Merge requeste para corrigir problemas com permissão de usuário para escrita na pasta gitlab-assets. See merge request !157
Showing
1 changed file
with
10 additions
and
0 deletions
Show diff stats
cookbooks/gitlab/recipes/default.rb
@@ -110,6 +110,16 @@ execute 'change-cache-owner' do | @@ -110,6 +110,16 @@ execute 'change-cache-owner' do | ||
110 | only_if 'ls -l /usr/lib/gitlab/tmp/cache | grep root' | 110 | only_if 'ls -l /usr/lib/gitlab/tmp/cache | grep root' |
111 | end | 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 | + | ||
118 | +execute 'change-gitlab-assets-owner' do | ||
119 | + command 'chown -R git:git /var/lib/gitlab-assets' | ||
120 | + only_if 'ls -l /var/lib/gitlab-assets | grep root' | ||
121 | +end | ||
122 | + | ||
113 | execute 'precompile-assets' do | 123 | execute 'precompile-assets' do |
114 | user 'git' | 124 | user 'git' |
115 | cwd '/usr/lib/gitlab' | 125 | cwd '/usr/lib/gitlab' |