Merge pull request #14 from datn/master

made pg_hba.conf addition with ident for Ubuntu 16.04
This commit is contained in:
wxcafé 2017-04-14 01:53:07 +02:00 committed by GitHub
commit 5bbee7f69e
1 changed files with 11 additions and 0 deletions

View File

@ -166,6 +166,17 @@ In the prompt:
CREATE USER mastodon CREATEDB;
\q
Under Ubuntu 16.04, you will need to explicitly enable ident authentication so that local users can connect to the database without a password:
sudo sed -i '/^local.*postgres.*peer$/a host all all 127.0.0.1/32 ident' /etc/postgresql/9.?/main/pg_hba.conf
and install an ident daemon, which does not come installed by default:
sudo apt-get install pidentd
sudo systemctl enable pidentd
sudo systemctl start pidentd
sudo systemctl restart postgresql
## Rbenv
It is recommended to use rbenv (exclusively from the `mastodon` user) to install the desired Ruby version. Follow the guides to [install rbenv][1] and [rbenv-build][2] (I recommend checking the [prerequisites][3] for your system on the rbenv-build project and installing them beforehand, obviously outside the unprivileged `mastodon` user)