Cli: Fix log for CA copy in 'agent setup --master'

refs #7248
This commit is contained in:
Michael Friedrich 2014-10-30 15:19:09 +01:00
parent 11058664bc
commit cde4f9a700
1 changed files with 2 additions and 3 deletions

View File

@ -157,11 +157,10 @@ int AgentSetupCommand::SetupMaster(const boost::program_options::variables_map&
/* Copy CA certificate to /etc/icinga2/pki */ /* Copy CA certificate to /etc/icinga2/pki */
String ca = PkiUtility::GetLocalCaPath() + "/ca.crt"; String ca = PkiUtility::GetLocalCaPath() + "/ca.crt";
String target_ca = pki_path + "/ca.crt";
Log(LogInformation, "cli") Log(LogInformation, "cli")
<< "Copying CA certificate to '" << ca << "'."; << "Copying CA certificate to '" << target_ca << "'.";
String target_ca = pki_path + "/ca.crt";
/* does not overwrite existing files! */ /* does not overwrite existing files! */
Utility::CopyFile(ca, target_ca); Utility::CopyFile(ca, target_ca);