summaryrefslogtreecommitdiffstats
path: root/routers/install.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/install.go')
-rw-r--r--routers/install.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/routers/install.go b/routers/install.go
index 8b96ff8254..75f38a7931 100644
--- a/routers/install.go
+++ b/routers/install.go
@@ -252,11 +252,10 @@ func InstallPost(ctx *context.Context, form auth.InstallForm) {
return
}
- // Check run user.
- curUser := user.CurrentUsername()
- if form.RunUser != curUser {
+ currentUser, match := setting.IsRunUserMatchCurrentUser(form.RunUser)
+ if !match {
ctx.Data["Err_RunUser"] = true
- ctx.RenderWithErr(ctx.Tr("install.run_user_not_match", form.RunUser, curUser), INSTALL, &form)
+ ctx.RenderWithErr(ctx.Tr("install.run_user_not_match", form.RunUser, currentUser), INSTALL, &form)
return
}