mirror of https://github.com/Icinga/icinga2.git
ChocoInstall: Update script to use checksum verification
This commit is contained in:
parent
d6048f6fe0
commit
d051d71b75
|
@ -1,8 +1,20 @@
|
||||||
$packageName = 'icinga2'
|
$packageName= 'icinga2'
|
||||||
$installerType = 'msi'
|
$toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)"
|
||||||
$url32 = 'https://packages.icinga.com/windows/Icinga2-v${CHOCO_VERSION_SHORT}-x86.msi'
|
$url = 'https://packages.icinga.com/windows/Icinga2-v${CHOCO_VERSION_SHORT}-x86.msi'
|
||||||
$url64 = 'https://packages.icinga.com/windows/Icinga2-v${CHOCO_VERSION_SHORT}-x86_64.msi'
|
$url64 = 'https://packages.icinga.com/windows/Icinga2-v${CHOCO_VERSION_SHORT}-x86_64.msi'
|
||||||
$silentArgs = '/qn /norestart'
|
|
||||||
$validExitCodes = @(0)
|
|
||||||
|
|
||||||
Install-ChocolateyPackage "$packageName" "$installerType" "$silentArgs" "$url32" "$url64" -validExitCodes $validExitCodes
|
$packageArgs = @{
|
||||||
|
packageName = $packageName
|
||||||
|
fileType = 'msi'
|
||||||
|
url = $url
|
||||||
|
url64bit = $url64
|
||||||
|
silentArgs = "/qn /norestart"
|
||||||
|
validExitCodes= @(0)
|
||||||
|
softwareName = 'Icinga 2*'
|
||||||
|
checksum = '' # TODO: Add checksum
|
||||||
|
checksumType = 'sha256'
|
||||||
|
checksum64 = '' # TODO: Add checksum
|
||||||
|
checksumType64= 'sha256'
|
||||||
|
}
|
||||||
|
|
||||||
|
Install-ChocolateyPackage @packageArgs
|
Loading…
Reference in New Issue