Skip to content

Commit

Permalink
Revert change on install
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Jul 5, 2023
1 parent aee8834 commit 7a47420
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions routers/install/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,10 @@ func Install(ctx *context.Context) {

// Note(unknown): it's hard for Windows users change a running user,
// so just use current one if config says default.
if setting.RunUser != "" {
form.RunUser = setting.RunUser
} else {
if setting.IsWindows && setting.RunUser == "git" {
form.RunUser = user.CurrentUsername()
if form.RunUser == "" {
form.RunUser = "git"
}
} else {
form.RunUser = setting.RunUser
}

form.Domain = setting.Domain
Expand Down

0 comments on commit 7a47420

Please sign in to comment.