Fixed mythtv selinux contexts on fedora 12 and older.

This commit is contained in:
Timo Mkinen 2010-11-03 10:15:34 +02:00
parent 6a89b5de3b
commit 160cfa35b8

View file

@ -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"],
}
}