Add missing MkDirP call

refs #11449
This commit is contained in:
Gunnar Beutner 2016-03-31 14:17:32 +02:00 committed by Gunnar Beutner
parent 0a96f4129e
commit fe5cef4107
1 changed files with 1 additions and 2 deletions

View File

@ -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);