mirror of https://github.com/perkeep/perkeep.git
serverconfig: don't hard-code .camli in default secring path
Change-Id: Id174acaa5aa080e1c021c5032d1aa7cf45501b3e
This commit is contained in:
parent
73cd34a6a0
commit
81ac8e61ec
|
@ -204,7 +204,7 @@ func GenLowLevelConfig(conf *Config) (lowLevelConf *Config, err error) {
|
|||
}
|
||||
|
||||
if secretRing == "" {
|
||||
secretRing = filepath.Join(osutil.HomeDir(), ".camli", "secring.gpg")
|
||||
secretRing = filepath.Join(osutil.CamliConfigDir(), "secring.gpg")
|
||||
_, err = os.Stat(secretRing)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("\"secring\" not set in config, and no default secret ring at %s", secretRing)
|
||||
|
|
Loading…
Reference in New Issue