mirror of https://github.com/Icinga/icinga2.git
parent
71e5fff6f6
commit
e27dee5476
|
@ -272,7 +272,7 @@ static int InstallIcinga(void)
|
|||
MkDirP(dataDir + "/var/lib/icinga2/agent/inventory");
|
||||
MkDirP(dataDir + "/var/lib/icinga2/api/config");
|
||||
MkDirP(dataDir + "/var/lib/icinga2/api/log");
|
||||
MkDirP(dataDir + "/var/lib/icinga2/api/zones");
|
||||
MkDirP(dataDir + "/var/lib/icinga2/api/repository");
|
||||
MkDirP(dataDir + "/var/lib/icinga2/api/zones");
|
||||
MkDirP(dataDir + "/var/log/icinga2/compat/archive");
|
||||
MkDirP(dataDir + "/var/log/icinga2/crash");
|
||||
|
|
|
@ -721,6 +721,8 @@ Value ClusterEvents::UpdateRepositoryAPIHandler(const MessageOrigin::Ptr& origin
|
|||
if (vrepository.IsEmpty() || !vrepository.IsObjectType<Dictionary>())
|
||||
return Empty;
|
||||
|
||||
Utility::MkDirP(GetRepositoryDir(), 0755);
|
||||
|
||||
String repositoryFile = GetRepositoryDir() + SHA256(params->Get("endpoint")) + ".repo";
|
||||
|
||||
std::fstream fp;
|
||||
|
|
Loading…
Reference in New Issue