diff --git a/modules/cgit/manifests/init.pp b/modules/cgit/manifests/init.pp index ee097b1872..a3ae155314 100644 --- a/modules/cgit/manifests/init.pp +++ b/modules/cgit/manifests/init.pp @@ -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':