summaryrefslogtreecommitdiffstats
path: root/gogs.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-25 06:52:56 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-25 06:52:56 -0400
commiteeb793524f2da4afdca017b585d9cfb6e9628e85 (patch)
treebb991219822ee3e4327939d92986f6f7f00196da /gogs.go
parent6ef3e8b3c9a085e3d99b02ba7bb80fc8126f2f90 (diff)
downloadgitea-eeb793524f2da4afdca017b585d9cfb6e9628e85.tar.gz
gitea-eeb793524f2da4afdca017b585d9cfb6e9628e85.zip
Check run user
Diffstat (limited to 'gogs.go')
-rw-r--r--gogs.go15
1 files changed, 0 insertions, 15 deletions
diff --git a/gogs.go b/gogs.go
index 93b7231b77..7ac699cc69 100644
--- a/gogs.go
+++ b/gogs.go
@@ -7,7 +7,6 @@ package main
import (
"os"
- // "os/user"
"runtime"
"github.com/codegangsta/cli"
@@ -27,21 +26,7 @@ func init() {
runtime.GOMAXPROCS(runtime.NumCPU())
}
-// func checkRunUser() bool {
-// u, err := user.Current()
-// if err != nil {
-// // TODO: log
-// return false
-// }
-// return u.Username == base.Cfg.MustValue("", "RUN_USER")
-// }
-
func main() {
- /*if !checkRunUser() {
- println("The command should be run as", base.Cfg.MustValue("", "RUN_USER"))
- return
- }*/
-
app := cli.NewApp()
app.Name = "Gogs"
app.Usage = "Go Git Service"