From 3e801fbd5a70fc3bd145dcdc8e751e59ea15c032 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janne=20He=C3=9F?= Date: Wed, 26 Jun 2019 02:04:06 +0200 Subject: [PATCH] Fix Path to staged files The paths in the list are relative, not absolute to the stage directory. --- lib/remote/apilistener-filesync.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/remote/apilistener-filesync.cpp b/lib/remote/apilistener-filesync.cpp index f3d5a5d48..979156bf9 100644 --- a/lib/remote/apilistener-filesync.cpp +++ b/lib/remote/apilistener-filesync.cpp @@ -547,7 +547,7 @@ void ApiListener::TryActivateZonesStageCallback(const ProcessResult& pr, // Copy all synced configuration files from stage to production. for (const String& path : relativePaths) { - if (!Utility::PathExists(path)) + if (!Utility::PathExists(apiZonesStageDir + path)) continue; Log(LogInformation, "ApiListener")