From 6b85b36e3a0cf8f5d6f96f5a2de7e9a7cbe8e1c0 Mon Sep 17 00:00:00 2001 From: Norm Date: Fri, 5 Aug 2022 05:02:42 +0000 Subject: [PATCH] Fix postgres install and setup for fedora guide Fedora requires some additional setup to work with Pleroma compared to Ubuntu/Debian. --- docs/docs/installation/fedora_based_en.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/docs/installation/fedora_based_en.md b/docs/docs/installation/fedora_based_en.md index 5129db80f..30d68d97f 100644 --- a/docs/docs/installation/fedora_based_en.md +++ b/docs/docs/installation/fedora_based_en.md @@ -25,7 +25,16 @@ sudo dnf upgrade --refresh * Install some of the above mentioned programs: ```shell -sudo dnf install git gcc g++ make cmake file-devel postgresql postgresql-contrib +sudo dnf install git gcc g++ make cmake file-devel postgresql-server postgresql-contrib +``` + +* Enable and initialize Postgres: +```shell +sudo systemctl enable postgresql.service +sudo postgresql-setup --initdb --unit postgresql +# Allow password auth for postgres +sudo sed -E -i 's|(host +all +all +127.0.0.1/32 +)ident|\1md5|' /var/lib/pgsql/data/pg_hba.conf +sudo systemctl start postgresql.service ``` ### Install Elixir and Erlang