Fixed SELinux error from wiki module when no datadir is set.
This commit is contained in:
parent
eb0e9417ee
commit
e4168748a7
1 changed files with 7 additions and 3 deletions
|
@ -199,7 +199,7 @@ class wiki::collab::base {
|
|||
}
|
||||
selinux::manage_fcontext { "/srv/wikis(/.*)?":
|
||||
type => "httpd_sys_rw_content_t",
|
||||
before => File[$wiki_datadir],
|
||||
before => File["/srv/wikis"],
|
||||
}
|
||||
|
||||
file { [ "/srv/wikis/collab",
|
||||
|
@ -218,8 +218,12 @@ class wiki::collab::base {
|
|||
owner => "collab",
|
||||
group => "collab",
|
||||
seltype => "httpd_sys_rw_content_t",
|
||||
require => [ File["/srv/wikis"], User["collab"], Group["collab"],
|
||||
Class["wiki::moin", "wiki::collab"], ],
|
||||
require => [
|
||||
File["/srv/wikis"],
|
||||
User["collab"],
|
||||
Group["collab"],
|
||||
Class["wiki::moin", "wiki::collab"],
|
||||
],
|
||||
before => Exec["collab-create collab collab"],
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue