Move reva transfer secret to shared.Commons

Signed-off-by: Christian Richter <crichter@owncloud.com>
This commit is contained in:
Christian Richter
2022-04-26 14:10:03 +02:00
parent a4d7696232
commit 58a24e620e
9 changed files with 31 additions and 15 deletions
+6
View File
@@ -57,6 +57,12 @@ func ParseConfig(cfg *config.Config) error {
log.Fatalf("machine auth api key is not set up properly, bailing out (ocis)")
}
if cfg.TransferSecret != "" {
cfg.Commons.TransferSecret = cfg.TransferSecret
} else {
log.Fatalf("reva transfer secret not properly set, bailing out (ocis)")
}
// load all env variables relevant to the config in the current context.
if err := envdecode.Decode(cfg); err != nil {
// no environment variable set for this config is an expected "error"