diff --git a/mythtv/manifests/init.pp b/mythtv/manifests/init.pp index d4399eb..5970fe2 100644 --- a/mythtv/manifests/init.pp +++ b/mythtv/manifests/init.pp @@ -139,8 +139,15 @@ class mythtv::mythweb { } if $selinux { + if $operatingsystem == "Fedora" { + if $operatingsystemrelease < 13 { + $context = "httpd_sys_content_rw_t" + } else { + $context = "httpd_sys_rw_content_t" + } + } selinux::manage_fcontext { "/usr/share/mythweb/data(/.*)?": - type => "httpd_sys_rw_content_t", + type => $context, before => File["/usr/share/mythweb/data"], } }