File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ repo_path_helper = Remote Git repositories will be saved to this directory.
224
224
lfs_path = Git LFS Root Path
225
225
lfs_path_helper = Files tracked by Git LFS will be stored in this directory. Leave empty to disable.
226
226
run_user = Run As Username
227
- run_user_helper = Enter the operating system username that Gitea runs as. Note that this user must have access to the repository root path.
227
+ run_user_helper = The operating system username that Gitea runs as. Note that this user must have access to the repository root path.
228
228
domain = Server Domain
229
229
domain_helper = Domain or host address for the server.
230
230
ssh_port = SSH Server Port
Original file line number Diff line number Diff line change @@ -120,10 +120,13 @@ func Install(ctx *context.Context) {
120
120
121
121
// Note(unknown): it's hard for Windows users change a running user,
122
122
// so just use current one if config says default.
123
- if setting .IsWindows && setting .RunUser == "git" {
124
- form .RunUser = user .CurrentUsername ()
125
- } else {
123
+ if setting .RunUser != "" {
126
124
form .RunUser = setting .RunUser
125
+ } else {
126
+ form .RunUser = user .CurrentUsername ()
127
+ if form .RunUser == "" {
128
+ form .RunUser = "git"
129
+ }
127
130
}
128
131
129
132
form .Domain = setting .Domain
Original file line number Diff line number Diff line change 119
119
</div>
120
120
<div class="inline required field {{if .Err_RunUser}}error{{end}}">
121
121
<label for="run_user">{{.locale.Tr "install.run_user"}}</label>
122
- <input id="run_user" name="run_user" value="{{.run_user}}" required >
122
+ <input id="run_user" name="run_user" value="{{.run_user}}" disabled >
123
123
<span class="help">{{.locale.Tr "install.run_user_helper"}}</span>
124
124
</div>
125
125
<div class="inline required field">
You can’t perform that action at this time.
0 commit comments