[icinga-checkins] icinga.org: icinga2/feature/apply-test: Fix file permissions in the Windows wizard

git at icinga.org git at icinga.org
Thu Nov 20 13:56:40 CET 2014


Module: icinga2
Branch: feature/apply-test
Commit: bf6a205edf986fb78c96526f848a303e80766fe2
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=bf6a205edf986fb78c96526f848a303e80766fe2

Author: Gunnar Beutner <gunnar at beutner.name>
Date:   Tue Nov 18 18:33:51 2014 +0100

Fix file permissions in the Windows wizard

refs #7726

---

 agent/windows-setup-agent/SetupWizard.cs |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/agent/windows-setup-agent/SetupWizard.cs b/agent/windows-setup-agent/SetupWizard.cs
index 4177079..43d7f9e 100644
--- a/agent/windows-setup-agent/SetupWizard.cs
+++ b/agent/windows-setup-agent/SetupWizard.cs
@@ -238,7 +238,7 @@ namespace Icinga
 			DirectoryInfo di = new DirectoryInfo(Icinga2InstallDir);
 			DirectorySecurity ds = di.GetAccessControl();
 			FileSystemAccessRule rule = new FileSystemAccessRule("NT AUTHORITY\\NetworkService",
-				FileSystemRights.ReadAndExecute | FileSystemRights.Write | FileSystemRights.ListDirectory,
+				FileSystemRights.Modify,
 				InheritanceFlags.ObjectInherit | InheritanceFlags.ContainerInherit, PropagationFlags.None, AccessControlType.Allow);
 			ds.AddAccessRule(rule);
 			di.SetAccessControl(ds);
@@ -290,8 +290,8 @@ namespace Icinga
 			Directory.CreateDirectory(installDir + "\\var\\cache\\icinga2");
 			Directory.CreateDirectory(installDir + "\\var\\lib\\icinga2\\pki");
 			Directory.CreateDirectory(installDir + "\\var\\lib\\icinga2\\agent\\inventory");
-			Directory.CreateDirectory(installDir + "\\var\\lib\\icinga2\\cluster\\config");
-			Directory.CreateDirectory(installDir + "\\var\\lib\\icinga2\\cluster\\log");
+			Directory.CreateDirectory(installDir + "\\var\\lib\\icinga2\\api\\config");
+			Directory.CreateDirectory(installDir + "\\var\\lib\\icinga2\\api\\log");
 			Directory.CreateDirectory(installDir + "\\var\\log\\icinga2\\compat\\archive");
 			Directory.CreateDirectory(installDir + "\\var\\run\\icinga2\\cmd");
 			Directory.CreateDirectory(installDir + "\\var\\spool\\icinga2\\perfdata");



More information about the icinga-checkins mailing list