mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-30 04:15:21 +00:00
Mirror fix
This commit is contained in:
parent
e95be2cb3e
commit
be69e74bc0
|
@ -274,6 +274,9 @@ func NewConfigContext() {
|
|||
|
||||
RunUser = Cfg.MustValue("", "RUN_USER")
|
||||
curUser := os.Getenv("USERNAME")
|
||||
if len(curUser) == 0 {
|
||||
curUser = os.Getenv("whoami")
|
||||
}
|
||||
if RunUser != curUser {
|
||||
fmt.Printf("Expect user(%s) but current user is: %s\n", RunUser, curUser)
|
||||
os.Exit(2)
|
||||
|
|
Loading…
Reference in a new issue