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 18, 2021
1 parent dd305c5 commit 2cdf68d
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 2cdf68d

Please sign in to comment.