aboutsummaryrefslogtreecommitdiffstats
path: root/routers/init.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/init.go')
-rw-r--r--routers/init.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/routers/init.go b/routers/init.go
index 58c7384092..4cce7992db 100644
--- a/routers/init.go
+++ b/routers/init.go
@@ -95,9 +95,8 @@ func syncAppPathForGit(ctx context.Context) error {
return nil
}
-// GlobalInit is for global configuration reload-able.
-func GlobalInit(ctx context.Context) {
- setting.NewContext()
+// GlobalInitInstalled is for global installed configuration.
+func GlobalInitInstalled(ctx context.Context) {
if !setting.InstallLock {
log.Fatal("Gitea is not installed")
}