Fixed selinux contexts from apache datadir.

This commit is contained in:
Timo Mkinen 2011-01-27 13:10:54 +02:00
parent 5475229cfd
commit f72ec5b350

View file

@ -35,6 +35,15 @@ class apache::common {
require => File["/srv/www"],
}
if "${selinux}" == "true" {
if $apache_datadir {
selinux::manage_fcontext { "${apache_datadir}(/.*)?":
type => "httpd_sys_content_t",
before => File["${apache_datadir}"],
}
}
}
package { "httpd":
name => $operatingsystem ? {
debian => "apache2",