Commit 677ccf515ad27618bf370b65c4021003e04732de
1 parent
9449afc7
Exists in
master
and in
65 other branches
Added permission to access static files noosfero
Signed-off-by: Macartur Sousa <macartur.sc@gmail.com>
Showing
2 changed files
with
24 additions
and
0 deletions
Show diff stats
cookbooks/noosfero/recipes/default.rb
| @@ -66,3 +66,16 @@ template '/etc/nginx/conf.d/noosfero.conf' do | @@ -66,3 +66,16 @@ template '/etc/nginx/conf.d/noosfero.conf' do | ||
| 66 | source 'nginx.conf.erb' | 66 | source 'nginx.conf.erb' |
| 67 | notifies :restart, 'service[nginx]' | 67 | notifies :restart, 'service[nginx]' |
| 68 | end | 68 | end |
| 69 | + | ||
| 70 | +############################################### | ||
| 71 | +# SELinux: permission to access static files noosfero | ||
| 72 | +################################################ | ||
| 73 | + | ||
| 74 | +cookbook_file '/etc/selinux/local/noosfero.te' do | ||
| 75 | + notifies :run, 'execute[selinux-noosfero]' | ||
| 76 | +end | ||
| 77 | + | ||
| 78 | +execute 'selinux-noosfero' do | ||
| 79 | + command 'selinux-install-module /etc/selinux/local/noosfero.te' | ||
| 80 | + action :nothing | ||
| 81 | +end |