Skip to content
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