0
0
Fork 0
mirror of https://codeberg.org/forgejo/docs.git synced 2025-02-01 03:35:03 -05: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.
This commit is contained in:
jagipson 2024-12-18 14:10:04 +00:00
parent 6d572a0d79
commit 11b9ffa5b8

View file

@ -51,14 +51,14 @@ Now create the directories Forgejo will use and set access permissions appropria
```sh ```sh
sudo mkdir /var/lib/forgejo 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. This is the directory Forgejo will store its data in, including your Git repositories.
```sh ```sh
sudo mkdir /etc/forgejo 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 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): write to it after the initial configuration):
```sh ```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` Now (as root) edit `/etc/forgejo/app.ini`