From 7b41891b3b9062a0a7262969f76a5ba5d465f277 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 31 Mar 2016 14:17:32 +0200 Subject: [PATCH] Add missing MkDirP call refs #11449 --- icinga-installer/icinga-installer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/icinga-installer/icinga-installer.cpp b/icinga-installer/icinga-installer.cpp index ea5c5d8e0..b4587f37c 100644 --- a/icinga-installer/icinga-installer.cpp +++ b/icinga-installer/icinga-installer.cpp @@ -57,8 +57,6 @@ static int InstallIcinga(void) { String installDir = GetIcingaInstallDir(); - installDir = "C:\\Program Files\\Icinga2\\"; - ExecuteCommand("icacls \"" + installDir + "\" /grant *S-1-5-20:(oi)(ci)m"); ExecuteCommand("icacls \"" + installDir + "\\etc\" /inheritance:r /grant:r *S-1-5-20:(oi)(ci)m *S-1-5-32-544:(oi)(ci)f"); @@ -72,6 +70,7 @@ static int InstallIcinga(void) Utility::MkDirP(installDir + "/var/lib/icinga2/api/zones", 0700); Utility::MkDirP(installDir + "/var/log/icinga2/compat/archive", 0700); Utility::MkDirP(installDir + "/var/log/icinga2/crash", 0700); + Utility::MkDirP(installDir + "/var/run/icinga2/cmd", 0700); Utility::MkDirP(installDir + "/var/spool/icinga2/perfdata", 0700); Utility::MkDirP(installDir + "/var/spool/icinga2/tmp", 0700);