Fix restart with simple DB.

pull/75/head
Mariano Cano 5 years ago
parent fb6a1afd89
commit 120e2d0caf

@ -159,7 +159,7 @@ func (ca *CA) Reload() error {
}
// Do not allow reload if the database configuration has changed.
if ca.config.DB != nil && !reflect.DeepEqual(ca.config.DB, config.DB) {
if !reflect.DeepEqual(ca.config.DB, config.DB) {
logContinue("Reload failed because the database configuration has changed.")
return errors.New("error reloading ca: database configuration cannot change")
}

Loading…
Cancel
Save