From 11b9ffa5b8bfbb8dd78b3803aacb127a65c62b9d Mon Sep 17 00:00:00 2001 From: jagipson Date: Wed, 18 Dec 2024 14:10:04 +0000 Subject: [PATCH] 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. --- docs/admin/installation-binary.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/admin/installation-binary.md b/docs/admin/installation-binary.md index ddf35654..331f0c4a 100644 --- a/docs/admin/installation-binary.md +++ b/docs/admin/installation-binary.md @@ -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`