Skip to content

Commit

Permalink
fix SELinux context of Redmine logs so that logrotate works
Browse files Browse the repository at this point in the history
Fixes: #1989
  • Loading branch information
evgeni committed Nov 20, 2023
1 parent c1280c2 commit 12da551
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions puppet/modules/redmine/manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -266,4 +266,12 @@
content => file('redmine/logrotate'),
}

if $facts['os']['selinux']['enabled'] {
include selinux

selinux::fcontext { 'fcontext-redmine-log':
seltype => 'var_log_t',
pathspec => "${app_root}/log(/.*)?",
}
}
}

0 comments on commit 12da551

Please sign in to comment.