mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Config sync: Only copy paths to prod which are actually there
Stored files may be removed by external sources.
This commit is contained in:
parent
db4cc13770
commit
08a47600be
@ -547,6 +547,9 @@ void ApiListener::TryActivateZonesStageCallback(const ProcessResult& pr,
|
||||
|
||||
// Copy all synced configuration files from stage to production.
|
||||
for (const String& path : relativePaths) {
|
||||
if (!Utility::PathExists(path))
|
||||
continue;
|
||||
|
||||
Log(LogInformation, "ApiListener")
|
||||
<< "Copying file '" << path << "' from config sync staging to production zones directory.";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user