]> source.dussan.org Git - gitea.git/commitdiff
Change initial TrustModel to committer (#18335)
authorzeripath <art27@cantab.net>
Thu, 20 Jan 2022 02:41:59 +0000 (02:41 +0000)
committerGitHub <noreply@github.com>
Thu, 20 Jan 2022 02:41:59 +0000 (21:41 -0500)
routers/install/install.go

index 7c3d43bbde074ddd21e1f8a1af303677164bfea3..230f6e0602accd5eed4c9fc51993ae8cc60b7431 100644 (file)
@@ -464,6 +464,8 @@ func SubmitInstall(ctx *context.Context) {
        cfg.Section("log").Key("ROOT_PATH").SetValue(form.LogRootPath)
        cfg.Section("log").Key("ROUTER").SetValue("console")
 
+       cfg.Section("repository.signing").Key("DEFAULT_TRUST_MODEL").SetValue("committer")
+
        cfg.Section("security").Key("INSTALL_LOCK").SetValue("true")
 
        var internalToken string