summaryrefslogtreecommitdiffstats
path: root/routers/install.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/install.go')
-rw-r--r--routers/install.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/routers/install.go b/routers/install.go
index 16888adc82..8f3d0d5ae6 100644
--- a/routers/install.go
+++ b/routers/install.go
@@ -386,6 +386,12 @@ func InstallPost(ctx *context.Context, form auth.InstallForm) {
}
log.Info("First-time run install finished!")
+ // FIXME: This isn't really enough to completely take account of new configuration
+ // We should really be restarting:
+ // - On windows this is probably just a simple restart
+ // - On linux we can't just use graceful.RestartProcess() everything that was passed in on LISTEN_FDS
+ // (active or not) needs to be passed out and everything new passed out too.
+ // This means we need to prevent the cleanup goroutine from running prior to the second GlobalInit
ctx.Flash.Success(ctx.Tr("install.install_success"))
ctx.Redirect(form.AppURL + "user/login")
}