Skip to content

Commit

Permalink
introduce secret OCIS_BASE_DATA_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
wkloucek committed Oct 14, 2021
1 parent 7620bd1 commit 5754232
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ocis-pkg/config/defaults/paths.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ var (
)

func BaseDataPath() string {

// It is not nice to have hidden / secrete configuration options
// But how can we update the base path for every occurence with a flageset option?
// This is currenlty not possible and needs a new configuration concept
p := os.Getenv("OCIS_BASE_DATA_PATH")
if p == "" {
return p
}

switch BaseDataPathType {
case "homedir":
dir, err := os.UserHomeDir()
Expand Down

0 comments on commit 5754232

Please sign in to comment.