Merge pull request 'Fix postgres install and setup for fedora guide' (#147) from...
authorfloatingghost <hannah@coffee-and-dreams.uk>
Fri, 5 Aug 2022 11:43:14 +0000 (11:43 +0000)
committerfloatingghost <hannah@coffee-and-dreams.uk>
Fri, 5 Aug 2022 11:43:14 +0000 (11:43 +0000)
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/147

docs/docs/installation/fedora_based_en.md

index 5129db80fadbd05ec3819e2d2e28d98a42abca4e..30d68d97fb444941ef44d15cec6937bb39741795 100644 (file)
@@ -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