diff options
author | Gusted <williamzijl7@hotmail.com> | 2022-01-23 19:02:29 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-23 20:02:29 +0100 |
commit | 5e5740af69cb0f44ff0c1576a2387388d75bb4c2 (patch) | |
tree | fdfcbe4f67d1de3c5c567beb6e03a551954b2047 /routers/install/install.go | |
parent | 8472884cefc4a52d7e383648b3591392bd9b6e4c (diff) | |
download | gitea-5e5740af69cb0f44ff0c1576a2387388d75bb4c2.tar.gz gitea-5e5740af69cb0f44ff0c1576a2387388d75bb4c2.zip |
Switch to non-deprecation setting (#18358)
* Switch to non-deprecation setting
(Avoid by-default: "Deprecated fallback `[server]` `LFS_CONTENT_PATH` present. Use `[lfs]` `PATH` instead. This fallback will be removed in v1.18.0")
* Update all references
Diffstat (limited to 'routers/install/install.go')
-rw-r--r-- | routers/install/install.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/install/install.go b/routers/install/install.go index 043fae26de..eb2cd23463 100644 --- a/routers/install/install.go +++ b/routers/install/install.go @@ -418,7 +418,7 @@ func SubmitInstall(ctx *context.Context) { if form.LFSRootPath != "" { cfg.Section("server").Key("LFS_START_SERVER").SetValue("true") - cfg.Section("server").Key("LFS_CONTENT_PATH").SetValue(form.LFSRootPath) + cfg.Section("lfs").Key("PATH").SetValue(form.LFSRootPath) var lfsJwtSecret string if lfsJwtSecret, err = generate.NewJwtSecretBase64(); err != nil { ctx.RenderWithErr(ctx.Tr("install.lfs_jwt_secret_failed", err), tplInstall, &form) |