mirror of https://github.com/Icinga/icinga2.git
parent
19c374040e
commit
21f86b9061
|
@ -105,8 +105,8 @@ bool ApiListener::UpdateConfigDir(const Dictionary::Ptr& oldConfig, const Dictio
|
||||||
|
|
||||||
if (authoritative) {
|
if (authoritative) {
|
||||||
String authPath = configDir + "/.authoritative";
|
String authPath = configDir + "/.authoritative";
|
||||||
if (!Utility::PathExists(tsPath)) {
|
if (!Utility::PathExists(authPath)) {
|
||||||
std::ofstream fp(tsPath.CStr(), std::ofstream::out | std::ostream::trunc);
|
std::ofstream fp(authPath.CStr(), std::ofstream::out | std::ostream::trunc);
|
||||||
fp.close();
|
fp.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue