Skip to content

Commit

Permalink
fix install on windows 2012 (#329)
Browse files Browse the repository at this point in the history
Co-authored-by: Phil Fenstermacher <[email protected]>
  • Loading branch information
gnobironts and pcfens authored Jul 17, 2023
1 parent f0f91eb commit 9d379dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion manifests/install/windows.pp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
# Core editions of Windows Server do not have a shell as such, so use the Shell.Application COM object doesn't work.
# Expand-Archive is a native powershell cmdlet which ships with Powershell 5, which in turn ships with Windows 10 and
# Windows Server 2016 and newer.
if ((versioncmp($facts['os']['release']['full'], '2016') >= 0) or (versioncmp($facts['os']['release']['full'], '10') >= 0)) {
if ( (versioncmp($facts['os']['release']['full'], '2016') >= 0)
or (versioncmp($facts['os']['release']['full'], '2000') < 0 and versioncmp($facts['os']['release']['full'], '10') >= 0) ) {
$unzip_command = "Expand-Archive ${zip_file} \"${filebeat::install_dir}\""
}
else {
Expand Down

0 comments on commit 9d379dd

Please sign in to comment.