Fixed SELinux contexts from git datadirectories.

This commit is contained in:
Timo Mkinen 2011-06-03 15:29:57 +03:00
parent 44bbad6862
commit caee979ec1

View file

@ -39,10 +39,24 @@ class git::server {
}
} else {
file { "/srv/git":
ensure => directory,
mode => 0755,
owner => root,
group => root,
ensure => directory,
mode => 0755,
owner => root,
group => root,
seltype => "httpd_sys_content_t",
}
}
if "${selinux}" == "true" {
selinux::manage_fcontext { "/srv/git(/.*)?":
type => "httpd_sys_content_t",
before => File["/srv/git"],
}
if $git_datadir {
selinux::manage_fcontext { "${git_datadir}(/.*)?":
type => "httpd_sys_content_t",
before => File["${git_datadir}"],
}
}
}