mirror of https://github.com/Icinga/icinga2.git
Leave partial deletes as is, this is dealt with stage purge later
This commit is contained in:
parent
b3fa51a5dc
commit
043824a6a9
|
@ -186,10 +186,12 @@ bool ApiListener::UpdateConfigDir(const ConfigDirInformation& oldConfigInfo, con
|
||||||
configChange = true;
|
configChange = true;
|
||||||
|
|
||||||
String path = configDir + "/" + kv.first;
|
String path = configDir + "/" + kv.first;
|
||||||
Utility::RemoveDirRecursive(path);
|
(void) unlink(path.CStr());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Consider that one of the paths leaves an empty directory here. Such is not copied from stage to prod and purged then automtically. */
|
||||||
|
|
||||||
String tsPath = configDir + "/.timestamp";
|
String tsPath = configDir + "/.timestamp";
|
||||||
if (!Utility::PathExists(tsPath)) {
|
if (!Utility::PathExists(tsPath)) {
|
||||||
std::ofstream fp(tsPath.CStr(), std::ofstream::out | std::ostream::trunc);
|
std::ofstream fp(tsPath.CStr(), std::ofstream::out | std::ostream::trunc);
|
||||||
|
|
Loading…
Reference in New Issue