mirror of
				https://github.com/Icinga/icinga2.git
				synced 2025-10-31 03:03:52 +01:00 
			
		
		
		
	ChocoInstall: Update script to use checksum verification
This commit is contained in:
		
							parent
							
								
									c48c24d732
								
							
						
					
					
						commit
						d612bd0261
					
				| @ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user