Use $CERTSPOTTER_STATE_DIR to specify state directory

This commit is contained in:
Andrew Ayer 2016-05-12 10:53:57 -07:00
parent dac062e17d
commit 7196ec5217
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ import (
) )
func DefaultStateDir () string { func DefaultStateDir () string {
if envVar := os.Getenv("CTWATCH_STATE_DIR"); envVar != "" { if envVar := os.Getenv("CERTSPOTTER_STATE_DIR"); envVar != "" {
return envVar return envVar
} else { } else {
return cmd.DefaultStateDir("certspotter") return cmd.DefaultStateDir("certspotter")