0
0
Fork 0
mirror of https://codeberg.org/forgejo/docs.git synced 2025-03-13 09:58:07 -04:00

Update docs/admin/installation-binary: add `sudo' as needed

In shell, prefixing a command with `sudo' only applies to the following command.  Just as with newlines, semicolons and pipes, the AND (`&&') and OR (`||') operators separate commands.

(cherry picked from commit 11b9ffa5b8)
This commit is contained in:
jagipson 2024-12-18 14:10:04 +00:00 committed by github-actions[bot]
parent e39b7a5bec
commit ee57615511

View file

@ -51,14 +51,14 @@ Now create the directories Forgejo will use and set access permissions appropria
```sh
sudo mkdir /var/lib/forgejo
sudo chown git:git /var/lib/forgejo && chmod 750 /var/lib/forgejo
sudo chown git:git /var/lib/forgejo && sudo chmod 750 /var/lib/forgejo
```
This is the directory Forgejo will store its data in, including your Git repositories.
```sh
sudo mkdir /etc/forgejo
sudo chown root:git /etc/forgejo && chmod 770 /etc/forgejo
sudo chown root:git /etc/forgejo && sudo chmod 770 /etc/forgejo
```
This is the directory Forgejo's config, called `app.ini`, is stored in. **Initially it needs to
@ -143,7 +143,7 @@ While at it, make `/etc/forgejo/` and the `app.ini` read-only for the git user (
write to it after the initial configuration):
```sh
sudo chmod 750 /etc/forgejo && chmod 640 /etc/forgejo/app.ini
sudo chmod 750 /etc/forgejo && sudo chmod 640 /etc/forgejo/app.ini
```
Now (as root) edit `/etc/forgejo/app.ini`