serverconfig: don't hard-code .camli in default secring path

Change-Id: Id174acaa5aa080e1c021c5032d1aa7cf45501b3e
This commit is contained in:
Brad Fitzpatrick 2012-03-19 13:49:41 -07:00
parent 73cd34a6a0
commit 81ac8e61ec
1 changed files with 1 additions and 1 deletions

View File

@ -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)