change default paths for oCIS services

This commit is contained in:
Willy Kloucek
2021-10-07 14:30:08 +02:00
parent 75a4015954
commit cddb334f80
54 changed files with 212 additions and 218 deletions
+8
View File
@@ -8,6 +8,14 @@ import (
// RootWithConfig applies cfg to the root flagset
func RootWithConfig(cfg *config.Config) []cli.Flag {
return []cli.Flag{
&cli.StringFlag{
// this is just a dummy config flag do document the existence
// of this environment variable
// the environment variable itself is used in `ocis-pkg/config/defaults/paths.go`
Name: "ocis-base-data-path",
Usage: "Set the base path where oCIS stores data",
EnvVars: []string{"OCIS_BASE_DATA_PATH"},
},
&cli.StringFlag{
Name: "config-file",
Usage: "Load config file from a non standard location.",