Skip to content

Commit

Permalink
Merge pull request #9778 from owncloud/change-ocmproviders-defaultpath
Browse files Browse the repository at this point in the history
save ocm providers config file to config path (not user space)
  • Loading branch information
butonic committed Aug 12, 2024
2 parents 22f7fa0 + b7fdc59 commit 8dc924a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions changelog/unreleased/change-ocmproviders-defaultpath.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion services/ocm/pkg/config/defaults/defaultconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 8dc924a

Please sign in to comment.