diff options
author | Unknwon <u@gogs.io> | 2016-08-09 17:41:18 -0700 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-08-09 17:41:18 -0700 |
commit | edd786446c0f7a1581be08dbe7697c339790c2c1 (patch) | |
tree | 117441b17267d3db3d8859ae06f11a03f1f9b253 /routers/install.go | |
parent | b0b88d9bc5670cc04ad9f53f6b75947db5991629 (diff) | |
download | gitea-edd786446c0f7a1581be08dbe7697c339790c2c1.tar.gz gitea-edd786446c0f7a1581be08dbe7697c339790c2c1.zip |
#3158 skip RUN_USER check on Windows
Diffstat (limited to 'routers/install.go')
-rw-r--r-- | routers/install.go | 7 |
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 } |