Fix PostgreSQL docs
ci/woodpecker/pr/woodpecker Pipeline is pending Details

Without creating the directory manually and setting it as user home folder
the commands afterwards won't be executable.
This commit is contained in:
Pascal Schmid 2023-01-02 13:03:59 +01:00
parent fcce355112
commit eb1b9c4155
1 changed files with 3 additions and 0 deletions

View File

@ -47,6 +47,9 @@ Create the `_akkoma` user, assign it the akkoma login class and create its home
Enter a shell as the `_akkoma` user. As root, run `su _akkoma -;cd`. Then clone the repository with `git clone https://akkoma.dev/AkkomaGang/akkoma.git`. Akkoma is now installed in `/home/_akkoma/akkoma/`, it will be configured and started at the end of this guide.
#### PostgreSQL
Create `_postgresql`'s user directory (it hasn't been created yet): `mdir var/postgresql/data`. To set it as home
directory for user `_postgresql` run `usermod -d /var/postgresql/data _postgresql`.
Start a shell as the `_postgresql` user (as root run `su _postgresql -` then run the `initdb` command to initialize postgresql.
You will need to specify pgdata directory to the default (`/var/postgresql/data`) with the `-D <path>` and set the user to postgres with the `-U <username>` flag. This can be done as follows: