Browse Source

Mirror fix

pull/35/head
Unknown 11 years ago
parent
commit
7aa0a97d10
  1. 2
      modules/base/conf.go

2
modules/base/conf.go

@ -275,7 +275,7 @@ func NewConfigContext() {
RunUser = Cfg.MustValue("", "RUN_USER")
curUser := os.Getenv("USERNAME")
if len(curUser) == 0 {
curUser = os.Getenv("whoami")
curUser = os.Getenv("USER")
}
if RunUser != curUser {
fmt.Printf("Expect user(%s) but current user is: %s\n", RunUser, curUser)

Loading…
Cancel
Save