mirror of
https://github.com/outbackdingo/certificates.git
synced 2026-01-27 10:18:34 +00:00
Fix restart with simple DB.
This commit is contained in:
2
ca/ca.go
2
ca/ca.go
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user