From 5fe1be8611448a30315adacad0e87c9610c1e63f Mon Sep 17 00:00:00 2001 From: "A.Unger" Date: Tue, 16 Nov 2021 23:14:56 +0100 Subject: [PATCH] sneaky bug --- storage/pkg/command/gateway.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/storage/pkg/command/gateway.go b/storage/pkg/command/gateway.go index 3e40e3d43..5e4df6513 100644 --- a/storage/pkg/command/gateway.go +++ b/storage/pkg/command/gateway.go @@ -32,11 +32,15 @@ func Gateway(cfg *config.Config) *cli.Command { Name: "gateway", Usage: "Start gateway", Before: func(c *cli.Context) error { + if err := ParseConfig(c, cfg, "storage-gateway"); err != nil { + return err + } + if cfg.Reva.DataGateway.PublicURL == "" { cfg.Reva.DataGateway.PublicURL = strings.TrimRight(cfg.Reva.Frontend.PublicURL, "/") + "/data" } - return ParseConfig(c, cfg, "storage-gateway") + return nil }, Action: func(c *cli.Context) error { logger := NewLogger(cfg)