mirror of https://github.com/Icinga/icinga2.git
parent
a19527f109
commit
5c23beb6a9
|
@ -134,7 +134,7 @@ void ApiListener::SyncZoneDir(const Zone::Ptr& zone) const
|
||||||
Log(LogInformation, "ApiListener")
|
Log(LogInformation, "ApiListener")
|
||||||
<< "Copying " << newConfig->GetLength() << " zone configuration files for zone '" << zone->GetName() << "' to '" << oldDir << "'.";
|
<< "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);
|
Dictionary::Ptr oldConfig = LoadConfigDir(oldDir);
|
||||||
|
|
||||||
|
@ -240,7 +240,7 @@ Value ApiListener::ConfigUpdateHandler(const MessageOrigin::Ptr& origin, const D
|
||||||
|
|
||||||
String oldDir = Application::GetLocalStateDir() + "/lib/icinga2/api/zones/" + zone->GetName();
|
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 newConfig = kv.second;
|
||||||
Dictionary::Ptr oldConfig = LoadConfigDir(oldDir);
|
Dictionary::Ptr oldConfig = LoadConfigDir(oldDir);
|
||||||
|
|
Loading…
Reference in New Issue