made apparmor lighttpd profile suitable for both OS 18.04 and 20.04
This commit is contained in:
parent
cd8817afb6
commit
8b90248ce8
1 changed files with 6 additions and 1 deletions
|
@ -249,7 +249,12 @@ class md_publisher(Array $allow_clients=['any'], $keyname=undef, String $dir="/v
|
|||
ensure => 'link',
|
||||
target => "/etc/ssl/private/${_keyname}.pem"
|
||||
} ->
|
||||
apparmor::profile { 'usr.sbin.lighttpd': source => '/etc/apparmor-cosmos/usr.sbin.lighttpd' } ->
|
||||
if ($::operatingsystemrelease < '20.04') {
|
||||
apparmor::profile { 'usr.sbin.lighttpd': source => '/etc/apparmor-cosmos/usr.sbin.lighttpd' }
|
||||
}
|
||||
else {
|
||||
apparmor::profile { 'usr.sbin.lighttpd': source => '/etc/apparmor-cosmos/usr.sbin.lighttpd.upgraded' }
|
||||
}
|
||||
file {'/etc/lighttpd/conf-enabled/99-mime-xattr.conf':
|
||||
ensure => file,
|
||||
mode => '0640',
|
||||
|
|
Loading…
Add table
Reference in a new issue