mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
Fail gracefully if a phys backend is not supplied
This commit is contained in:
@@ -75,6 +75,11 @@ func (c *ServerCommand) Run(args []string) int {
|
||||
}
|
||||
}
|
||||
|
||||
if config.Backend == nil {
|
||||
c.Ui.Error("Error: A physical backend must be specified in the configuration")
|
||||
return 1
|
||||
}
|
||||
|
||||
// If mlock isn't supported, show a warning. We disable this in
|
||||
// dev because it is quite scary to see when first using Vault.
|
||||
if !dev && !mlock.Supported() {
|
||||
|
||||
Reference in New Issue
Block a user