0
0
Fork 0
mirror of https://codeberg.org/forgejo/docs.git synced 2024-11-24 18:09:26 -05:00

improve install binary documentation

- use useradd instead of adduser
- improve readability of systemd documentation
This commit is contained in:
Alex Fu 2024-08-15 12:17:09 +00:00 committed by Gusted
parent 622c8244bd
commit f0374b28fe

View file

@ -37,8 +37,7 @@ like Fedora, CentOS etc.), run this instead:
``` ```
# groupadd --system git # groupadd --system git
# useradd --system --shell /bin/bash --comment 'Git Version Control' \
# adduser --system --shell /bin/bash --comment 'Git Version Control' \
--gid git --home-dir /home/git --create-home git --gid git --home-dir /home/git --create-home git
``` ```
@ -77,15 +76,21 @@ setup instructions.
Forgejo provides a Forgejo provides a
[systemd service script](https://codeberg.org/forgejo/forgejo/src/branch/forgejo/contrib/systemd/forgejo.service). [systemd service script](https://codeberg.org/forgejo/forgejo/src/branch/forgejo/contrib/systemd/forgejo.service).
Download it to the correct location: Download it to the correct location:
`# wget -O /etc/systemd/system/forgejo.service https://codeberg.org/forgejo/forgejo/raw/branch/forgejo/contrib/systemd/forgejo.service`
```
# wget -O /etc/systemd/system/forgejo.service https://codeberg.org/forgejo/forgejo/raw/branch/forgejo/contrib/systemd/forgejo.service
```
If you're _not_ using sqlite, but MySQL or MariaDB or PostgreSQL, you'll have to edit that file If you're _not_ using sqlite, but MySQL or MariaDB or PostgreSQL, you'll have to edit that file
(`/etc/systemd/system/forgejo.service`) and uncomment the corresponding `Wants=` and `After=` lines. (`/etc/systemd/system/forgejo.service`) and uncomment the corresponding `Wants=` and `After=` lines.
Otherwise it _should_ work as it is. Otherwise it _should_ work as it is.
Now enable and start the Forgejo service, so you can go on with the installation: Now enable and start the Forgejo service, so you can go on with the installation:
`# systemctl enable forgejo.service`
`# systemctl start forgejo.service` ```
# systemctl enable forgejo.service
# systemctl start forgejo.service
```
## Forgejo's web-based configuration ## Forgejo's web-based configuration