mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-10-20 05:23:15 -04:00
do not overwrite any files
This commit is contained in:
1 file changed
+2
-2
@@ -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