diff options
author | Unknown <joe2010xtmf@163.com> | 2014-04-11 23:52:08 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-04-11 23:52:08 -0400 |
commit | d305448fa802a91ba81af1b78294f1658bcf834c (patch) | |
tree | 7bd274eb5c14c9d45c964e652b4c35d66de2cec9 /routers/install.go | |
parent | 3df8b2bef0f95f873e955840c6b12c3fe3dc9f8a (diff) | |
download | gitea-d305448fa802a91ba81af1b78294f1658bcf834c.tar.gz gitea-d305448fa802a91ba81af1b78294f1658bcf834c.zip |
Mirror bug fix
Diffstat (limited to 'routers/install.go')
-rw-r--r-- | routers/install.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/install.go b/routers/install.go index 78ba383dee..76c03f0529 100644 --- a/routers/install.go +++ b/routers/install.go @@ -146,9 +146,9 @@ func InstallPost(ctx *middleware.Context, form auth.InstallForm) { } // Check run user. - curUser := os.Getenv("USERNAME") + curUser := os.Getenv("USER") if len(curUser) == 0 { - curUser = os.Getenv("USER") + curUser = os.Getenv("USERNAME") } // Does not check run user when the install lock is off. if form.RunUser != curUser { |