summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/base/conf.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/base/conf.go b/modules/base/conf.go
index 3eb01bdd56..1661681e7e 100644
--- a/modules/base/conf.go
+++ b/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)