diff --git a/changelog/unreleased/change-ocmproviders-defaultpath.md b/changelog/unreleased/change-ocmproviders-defaultpath.md new file mode 100644 index 0000000000..e40e65807f --- /dev/null +++ b/changelog/unreleased/change-ocmproviders-defaultpath.md @@ -0,0 +1,5 @@ +Bugfix: change ocmproviders config defaultpath + +We moved the default location of the `ocmproviders.json` config file out of the data directory of the ocm service to the ocis config directory. + +https://github.com/owncloud/ocis/pull/9778 diff --git a/services/ocm/pkg/config/defaults/defaultconfig.go b/services/ocm/pkg/config/defaults/defaultconfig.go index e388f760ac..587561fb66 100644 --- a/services/ocm/pkg/config/defaults/defaultconfig.go +++ b/services/ocm/pkg/config/defaults/defaultconfig.go @@ -105,7 +105,7 @@ func DefaultConfig() *config.Config { OCMProviderAuthorizerDriver: "json", OCMProviderAuthorizerDrivers: config.OCMProviderAuthorizerDrivers{ JSON: config.OCMProviderAuthorizerJSONDriver{ - Providers: filepath.Join(defaults.BaseDataPath(), "storage", "ocm", "ocmproviders.json"), + Providers: filepath.Join(defaults.BaseConfigPath(), "ocmproviders.json"), }, }, OCMShareProvider: config.OCMShareProvider{