mirror of https://github.com/perkeep/perkeep.git
encrypt: fix check for missing config
Change-Id: I4433c36bc55a475cfa59953594f3a554c2d6ec2e
This commit is contained in:
parent
574b5feb96
commit
2c4d272ef9
|
@ -582,7 +582,7 @@ func newFromConfig(ld blobserver.Loader, config jsonconfig.Obj) (bs blobserver.S
|
|||
return
|
||||
}
|
||||
|
||||
if sto.key == nil {
|
||||
if keyb == nil {
|
||||
// TODO: add a way to prompt from stdin on start? or keychain support?
|
||||
return nil, errors.New("no encryption key set with 'key' or 'keyFile'")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue