From 554799754d1fd51181115e8804ddb91f8abcfd88 Mon Sep 17 00:00:00 2001 From: Haelnorr Date: Sat, 22 Feb 2025 15:22:31 +1100 Subject: [PATCH] Fixed flag dbver failing if secret key not set --- config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index 3358dfd..0b9bc90 100644 --- a/config/config.go +++ b/config/config.go @@ -98,7 +98,7 @@ func GetConfig(args map[string]string) (*Config, error) { LogDir: GetEnvDefault("LOG_DIR", ""), } - if config.SecretKey == "" { + if config.SecretKey == "" && args["dbver"] != "true" { return nil, errors.New("Envar not set: SECRET_KEY") }