Skip to content

Commit

Permalink
Cli: Fix log for CA copy in 'agent setup --master'
Browse files Browse the repository at this point in the history
refs #7248
  • Loading branch information
Michael Friedrich committed Oct 30, 2014
1 parent 1105866 commit cde4f9a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/cli/agentsetupcommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cde4f9a

Please sign in to comment.