From ac54724e30961d401ac9c3eae4df369a59b0a135 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Fri, 18 Apr 2014 21:16:26 +0200 Subject: [PATCH] Update manifest for the agent setup wizard. Refs #4865 --- tools/icinga2-setup-agent/AgentWizard.cs | 6 +++- tools/icinga2-setup-agent/App.config | 5 +-- .../Icinga2SetupAgent.csproj | 35 ++++++++++++++++++- tools/icinga2-setup-agent/Program.cs | 3 -- 4 files changed, 42 insertions(+), 7 deletions(-) diff --git a/tools/icinga2-setup-agent/AgentWizard.cs b/tools/icinga2-setup-agent/AgentWizard.cs index be3aa4bd3..2da6fcd36 100644 --- a/tools/icinga2-setup-agent/AgentWizard.cs +++ b/tools/icinga2-setup-agent/AgentWizard.cs @@ -297,7 +297,11 @@ namespace Icinga MemoryStream ms = new MemoryStream(bytes); GZipStream gz = new GZipStream(ms, CompressionMode.Decompress); MemoryStream ms2 = new MemoryStream(); - gz.CopyTo(ms2); + + byte[] buffer = new byte[512]; + int rc; + while ((rc = gz.Read(buffer, 0, buffer.Length)) > 0) + ms2.Write(buffer, 0, rc); ms2.Position = 0; TarReader tr = new TarReader(ms2); tr.ReadToEnd(Icinga2InstallDir + "\\etc\\icinga2\\pki\\agent"); diff --git a/tools/icinga2-setup-agent/App.config b/tools/icinga2-setup-agent/App.config index 8e1564635..49c7a61c6 100644 --- a/tools/icinga2-setup-agent/App.config +++ b/tools/icinga2-setup-agent/App.config @@ -1,6 +1,7 @@  - - + + + \ No newline at end of file diff --git a/tools/icinga2-setup-agent/Icinga2SetupAgent.csproj b/tools/icinga2-setup-agent/Icinga2SetupAgent.csproj index c359e9167..9e749508f 100644 --- a/tools/icinga2-setup-agent/Icinga2SetupAgent.csproj +++ b/tools/icinga2-setup-agent/Icinga2SetupAgent.csproj @@ -9,8 +9,24 @@ Properties Icinga Icinga2SetupAgent - v4.5 + v2.0 512 + + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + false + true x86 @@ -108,6 +124,23 @@ + + + False + Microsoft .NET Framework 4.5 %28x86 and x64%29 + true + + + False + .NET Framework 3.5 SP1 Client Profile + false + + + False + .NET Framework 3.5 SP1 + false + +