Files
gitea_docker/old_add_env.patch
Matheus Sampaio Queiroga bfd31b0c9b
All checks were successful
Docker build / Check if image released (push) Successful in 2m13s
Docker build / Build main docker image (push) Has been skipped
Docker build / Build release docker image (push) Has been skipped
Add patch to old release
2025-06-23 01:23:03 -03:00

13 lines
518 B
Diff

diff --git a/cmd/main.go b/cmd/main.go
index 7251bd09a3..e83732bc52 100644
--- a/cmd/main.go
+++ b/cmd/main.go
@@ -104,6 +104,7 @@ func prepareWorkPathAndCustomConf(action cli.ActionFunc) func(ctx *cli.Context)
}
}
setting.InitWorkPathAndCommonConfig(os.Getenv, args)
+ setting.EnvironmentToConfig(setting.CfgProvider, os.Environ()) // Add config from env
if ctx.Bool("help") || action == nil {
// the default behavior of "urfave/cli": "nil action" means "show help"
return cmdHelp().Action(ctx)