Skip to content

Commit

Permalink
resolve absolute path for UploadInfoDir
Browse files Browse the repository at this point in the history
  • Loading branch information
wkloucek committed Feb 11, 2021
1 parent 466407e commit 4b47420
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion storage/pkg/command/drivers.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
package command

import (
"path/filepath"

"github.com/owncloud/ocis/storage/pkg/config"
)

func drivers(cfg *config.Config) map[string]interface{} {

// UploadInfoDir must always be absolute for REVA
uploadInfoDir, _ := filepath.Abs(cfg.Reva.Storages.OwnCloud.UploadInfoDir)

return map[string]interface{}{
"eos": map[string]interface{}{
"namespace": cfg.Reva.Storages.EOS.Root,
Expand Down Expand Up @@ -77,7 +83,7 @@ func drivers(cfg *config.Config) map[string]interface{} {
},
"owncloud": map[string]interface{}{
"datadirectory": cfg.Reva.Storages.OwnCloud.Root,
"upload_info_dir": cfg.Reva.Storages.OwnCloud.UploadInfoDir,
"upload_info_dir": uploadInfoDir,
"sharedirectory": cfg.Reva.Storages.OwnCloud.ShareFolder,
"user_layout": cfg.Reva.Storages.OwnCloud.UserLayout,
"redis": cfg.Reva.Storages.OwnCloud.Redis,
Expand Down

0 comments on commit 4b47420

Please sign in to comment.