diff options
author | Gusted <williamzijl7@hotmail.com> | 2022-11-01 19:23:56 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-01 19:23:56 +0000 |
commit | c2d2323fc8fdcafde705be782711e318d79f4492 (patch) | |
tree | dd5d114f179389fd25b0b36723f2211a9518b6cd /routers/install/install.go | |
parent | f211d235c7a42c03f97697878550dc49b65e93da (diff) | |
download | gitea-c2d2323fc8fdcafde705be782711e318d79f4492.tar.gz gitea-c2d2323fc8fdcafde705be782711e318d79f4492.zip |
Configure update checker on installation page (#21655)
- I recently became aware that this was enabled by-default, I don't
necessary agree with that and this should rather be configured by the
user(this patch does that on the installation page) as it connects to a
homeserver, which I'd prefer to avoid on my instance.
![image](https://user-images.githubusercontent.com/25481501/199260613-a77a1b10-347a-4542-8982-9b9b24dad28c.png)
Diffstat (limited to 'routers/install/install.go')
-rw-r--r-- | routers/install/install.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/install/install.go b/routers/install/install.go index 962dee8c86..6bac5b5ff7 100644 --- a/routers/install/install.go +++ b/routers/install/install.go @@ -457,6 +457,7 @@ func SubmitInstall(ctx *context.Context) { cfg.Section("service").Key("DEFAULT_ALLOW_CREATE_ORGANIZATION").SetValue(fmt.Sprint(form.DefaultAllowCreateOrganization)) cfg.Section("service").Key("DEFAULT_ENABLE_TIMETRACKING").SetValue(fmt.Sprint(form.DefaultEnableTimetracking)) cfg.Section("service").Key("NO_REPLY_ADDRESS").SetValue(fmt.Sprint(form.NoReplyAddress)) + cfg.Section("cron.update_checker").Key("ENABLED").SetValue(fmt.Sprint(form.EnableUpdateChecker)) cfg.Section("").Key("RUN_MODE").SetValue("prod") |