Skip to content

Docs for creating a user to run Gitea on Fedora/RHEL/CentOS #24725

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs/content/doc/installation/from-binary.en-us.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ git --version
Create a user to run Gitea (e.g. `git`)

```sh
# On Ubuntu/Debian:
adduser \
--system \
--shell /bin/bash \
Expand All @@ -88,6 +89,17 @@ adduser \
--disabled-password \
--home /home/git \
git

# On Fedora/RHEL/CentOS:
groupadd --system git
adduser \
--system \
--shell /bin/bash \
--comment 'Git Version Control' \
--gid git \
--home-dir /home/git \
--create-home \
git
```

### Create required directory structure
Expand Down
12 changes: 12 additions & 0 deletions docs/content/doc/installation/from-binary.zh-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ git --version
创建用户(推荐使用名称 `git`)

```sh
# On Ubuntu/Debian:
adduser \
--system \
--shell /bin/bash \
Expand All @@ -82,6 +83,17 @@ adduser \
--disabled-password \
--home /home/git \
git

# On Fedora/RHEL/CentOS:
groupadd --system git
adduser \
--system \
--shell /bin/bash \
--comment 'Git Version Control' \
--gid git \
--home-dir /home/git \
--create-home \
git
```

### 创建工作路径
Expand Down