mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-19 19:54:34 +02:00
Merge pull request #6991 from Icinga/bugfix/already-exist-critical
PkiUtility::NewCa(): just warn if the CA files already exist
This commit is contained in:
commit
69f073f903
@ -24,7 +24,7 @@ int PkiUtility::NewCa()
|
||||
String caKeyFile = caDir + "/ca.key";
|
||||
|
||||
if (Utility::PathExists(caCertFile) && Utility::PathExists(caKeyFile)) {
|
||||
Log(LogCritical, "cli")
|
||||
Log(LogWarning, "cli")
|
||||
<< "CA files '" << caCertFile << "' and '" << caKeyFile << "' already exist.";
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user