Skip to content

Commit

Permalink
Merge pull request #797 from lbetz/fix/file-permission-windows-796
Browse files Browse the repository at this point in the history
Broken file permissions on Windows
  • Loading branch information
lbetz authored Nov 8, 2024
2 parents eaaca5b + 2a7c969 commit 6ff3ecb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
$user = $icinga2::globals::user
$group = $icinga2::globals::group

if $facts['kernel'] != 'windows' {
$file_mode = '0750'
} else {
$file_mode = undef
}

if $manage_packages {
if $facts['os']['family'] == 'windows' { Package { provider => chocolatey, } }

Expand All @@ -37,7 +43,7 @@
ensure => directory,
owner => $user,
group => $group,
mode => '0750',
mode => $file_mode,
;
$conf_dir:
seltype => 'icinga2_etc_t',
Expand Down

0 comments on commit 6ff3ecb

Please sign in to comment.