mirror of https://github.com/Icinga/icinga2.git
parent
980ce96910
commit
1eecc72093
|
@ -143,7 +143,7 @@ void ApiListener::SyncZoneDir(const Zone::Ptr& zone) const
|
|||
Log(LogInformation, "ApiListener")
|
||||
<< "Copying " << newConfig->GetLength() << " zone configuration files for zone '" << zone->GetName() << "' to '" << oldDir << "'.";
|
||||
|
||||
Utility::MkDir(oldDir, 0700);
|
||||
Utility::MkDirP(oldDir, 0700);
|
||||
|
||||
Dictionary::Ptr oldConfig = LoadConfigDir(oldDir);
|
||||
|
||||
|
@ -244,7 +244,7 @@ Value ApiListener::ConfigUpdateHandler(const MessageOrigin::Ptr& origin, const D
|
|||
|
||||
String oldDir = Application::GetLocalStateDir() + "/lib/icinga2/api/zones/" + zone->GetName();
|
||||
|
||||
Utility::MkDir(oldDir, 0700);
|
||||
Utility::MkDirP(oldDir, 0700);
|
||||
|
||||
Dictionary::Ptr newConfig = kv.second;
|
||||
Dictionary::Ptr oldConfig = LoadConfigDir(oldDir);
|
||||
|
|
Loading…
Reference in New Issue