diff --git a/docs/installation/external_dependencies.rst b/docs/installation/external_dependencies.rst index 3fa430788..55ce9747b 100644 --- a/docs/installation/external_dependencies.rst +++ b/docs/installation/external_dependencies.rst @@ -45,15 +45,25 @@ Create the project database and user: CREATE USER funkwhale; GRANT ALL PRIVILEGES ON DATABASE funkwhale TO funkwhale; -Assuming you already have :ref:`created your funkwhale user `, -you should now be able to open a postgresql shell: - .. warning:: - It's importing that you use utf-8 encoding for your database, + It's important that you use utf-8 encoding for your database, otherwise you'll end up with errors and crashes later on when dealing with music metedata that contains non-ascii chars. + +On Debian you will also need to allow the funkwhale unix user to access the database: + +.. code-block:: shell + + cat | sudo tee -a /etc/postgresql/9.5/main/pg_hba.conf << EOF + local all funkwhale peer + EOF + sudo systemctl restart postgresql + +Assuming you already have :ref:`created your funkwhale user `, +you should now be able to open a postgresql shell: + .. code-block:: shell sudo -u funkwhale -H psql