From cde4f9a700cdb082fa9f119b6d28be2732a4bfd2 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Thu, 30 Oct 2014 15:19:09 +0100 Subject: [PATCH] Cli: Fix log for CA copy in 'agent setup --master' refs #7248 --- lib/cli/agentsetupcommand.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/cli/agentsetupcommand.cpp b/lib/cli/agentsetupcommand.cpp index f5282236b..82cf1e6a0 100644 --- a/lib/cli/agentsetupcommand.cpp +++ b/lib/cli/agentsetupcommand.cpp @@ -157,11 +157,10 @@ int AgentSetupCommand::SetupMaster(const boost::program_options::variables_map& /* Copy CA certificate to /etc/icinga2/pki */ String ca = PkiUtility::GetLocalCaPath() + "/ca.crt"; + String target_ca = pki_path + "/ca.crt"; Log(LogInformation, "cli") - << "Copying CA certificate to '" << ca << "'."; - - String target_ca = pki_path + "/ca.crt"; + << "Copying CA certificate to '" << target_ca << "'."; /* does not overwrite existing files! */ Utility::CopyFile(ca, target_ca);