Fix restorecon exec on /var/lib/git

The restorecon command for selinux needed to require /var/lib/git
and the syntax is actually "File" rather than "Folder" here.

Also added refreshonly so it only runs when /var/lib/git changes.

Change-Id: I88f40dc3051d66ef9f9dc4d667474b8cc7d2a5f7
This commit is contained in:
Elizabeth Krumbach 2013-07-17 15:13:58 -07:00
parent 11fad215d5
commit 16edba6c5f

View File

@ -51,11 +51,14 @@ class cgit {
owner => 'cgit',
group => 'cgit',
mode => '0644',
require => User['cgit'],
}
exec { 'restorecon -R -v /var/lib/git':
path => '/sbin',
subscribe => Folder['/var/lib/git']
path => '/sbin',
require => File['/var/lib/git'],
subscribe => File['/var/lib/git'],
refreshonly => true,
}
selboolean { 'httpd_enable_cgi':