From f177794d961fc822a826a8cb90cf15db6fa3f08c Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Thu, 21 Apr 2016 14:03:42 +0200 Subject: [PATCH] Update chocolatey packages and RELEASE.md fixes #11647 --- RELEASE.md | 15 +++++++++++++++ tools/chocolateyInstall.ps1 | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/RELEASE.md b/RELEASE.md index 0b21f2ed4..b8c2c6ca2 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -130,6 +130,21 @@ Example for CentOS7: Create a new release for the newly created Git tag. https://github.com/Icinga/icinga2/releases +## Chocolatey + +Navigate to the git repository on your Windows box which +already has chocolatey installed. Pull/checkout the release. + +Create the nupkg package: + + cpack + +Install the created icinga2 package locally: + + choco install icinga2 -version 2.4.7 -fdv "%cd%" -source "'%cd%;https://chocolatey.org/api/v2/'" + +Upload the package to [chocolatey](https://chocolatey.org/packages/upload). + ## Online Documentation SSH into the web box, navigate into `icinga2-latest/module/icinga2` diff --git a/tools/chocolateyInstall.ps1 b/tools/chocolateyInstall.ps1 index ad5a282ca..b31c84f24 100755 --- a/tools/chocolateyInstall.ps1 +++ b/tools/chocolateyInstall.ps1 @@ -2,7 +2,7 @@ $installerType = 'msi' $url32 = 'http://packages.icinga.org/windows/Icinga2-v2.4.7-x86.msi' $url64 = 'http://packages.icinga.org/windows/Icinga2-v2.4.7-x86_64.msi' -$silentArgs = '/silent' +$silentArgs = '/qn /norestart' $validExitCodes = @(0) Install-ChocolateyPackage "$packageName" "$installerType" "$silentArgs" "$url32" "$url64" -validExitCodes $validExitCodes