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) {
|
||||
String authPath = configDir + "/.authoritative";
|
||||
if (!Utility::PathExists(tsPath)) {
|
||||
std::ofstream fp(tsPath.CStr(), std::ofstream::out | std::ostream::trunc);
|
||||
if (!Utility::PathExists(authPath)) {
|
||||
std::ofstream fp(authPath.CStr(), std::ofstream::out | std::ostream::trunc);
|
||||
fp.close();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue