Skip to content

Commit d17a848

Browse files
authored
Disable run user change in installation page (#22499)
The run user should not be changed on the installation page because it will not be any effect to Gitea. This PR disabled the input box of run user.
1 parent ab60957 commit d17a848

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

options/locale/locale_en-US.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ repo_path_helper = Remote Git repositories will be saved to this directory.
224224
lfs_path = Git LFS Root Path
225225
lfs_path_helper = Files tracked by Git LFS will be stored in this directory. Leave empty to disable.
226226
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.
228228
domain = Server Domain
229229
domain_helper = Domain or host address for the server.
230230
ssh_port = SSH Server Port

templates/install.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
</div>
120120
<div class="inline required field {{if .Err_RunUser}}error{{end}}">
121121
<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}}" readonly>
123123
<span class="help">{{.locale.Tr "install.run_user_helper"}}</span>
124124
</div>
125125
<div class="inline required field">

0 commit comments

Comments
 (0)