From b7fdc59f211ecdd624f3cc44469787248d212e6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Mon, 12 Aug 2024 12:27:05 +0200 Subject: [PATCH] change ocmproviders defaultconfig path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jörn Friedrich Dreyer --- changelog/unreleased/change-ocmproviders-defaultpath.md | 5 +++++ services/ocm/pkg/config/defaults/defaultconfig.go | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 changelog/unreleased/change-ocmproviders-defaultpath.md 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{