mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2025-12-30 17:00:57 -06:00
do not overwrite any files
This commit is contained in:
@@ -50,8 +50,8 @@ func GenCert(certName string, keyName string, l log.Logger) error {
|
||||
_, certErr := os.Stat(certName)
|
||||
_, keyErr := os.Stat(keyName)
|
||||
|
||||
if certErr == nil && keyErr == nil {
|
||||
l.Debug().Msg("LDAPS certificate and key already present, using these")
|
||||
if certErr == nil || keyErr == nil {
|
||||
l.Debug().Msg("LDAPS certificate or key already present, using these")
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user