Skip to content

Commit f74bd9d

Browse files
authored
Docs for creating a user to run Gitea on Fedora/RHEL/CentOS (#24725)
The current command doesn't work on Fedora/RHEL/CentOS. - `--gecos`: use `--comment` instead. - `--group`: use `--gid` instead, `--group` means "A list of supplementary groups" on F/R/C. - `--disabled-password`: leave `--password` empty instead, "The default is to disable the password". - `--home`: use `--home-dir` and `--create-home` instead.
1 parent 7bf80ad commit f74bd9d

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

docs/content/doc/installation/from-binary.en-us.md

+12
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ git --version
8080
Create a user to run Gitea (e.g. `git`)
8181

8282
```sh
83+
# On Ubuntu/Debian:
8384
adduser \
8485
--system \
8586
--shell /bin/bash \
@@ -88,6 +89,17 @@ adduser \
8889
--disabled-password \
8990
--home /home/git \
9091
git
92+
93+
# On Fedora/RHEL/CentOS:
94+
groupadd --system git
95+
adduser \
96+
--system \
97+
--shell /bin/bash \
98+
--comment 'Git Version Control' \
99+
--gid git \
100+
--home-dir /home/git \
101+
--create-home \
102+
git
91103
```
92104

93105
### Create required directory structure

docs/content/doc/installation/from-binary.zh-cn.md

+12
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ git --version
7474
创建用户(推荐使用名称 `git`
7575

7676
```sh
77+
# On Ubuntu/Debian:
7778
adduser \
7879
--system \
7980
--shell /bin/bash \
@@ -82,6 +83,17 @@ adduser \
8283
--disabled-password \
8384
--home /home/git \
8485
git
86+
87+
# On Fedora/RHEL/CentOS:
88+
groupadd --system git
89+
adduser \
90+
--system \
91+
--shell /bin/bash \
92+
--comment 'Git Version Control' \
93+
--gid git \
94+
--home-dir /home/git \
95+
--create-home \
96+
git
8597
```
8698

8799
### 创建工作路径

0 commit comments

Comments
 (0)