From 530fc93ee0874d9555d879d4aa4d8eb39a3bc9bb Mon Sep 17 00:00:00 2001 From: Bastien Lacoste Date: Sun, 20 Feb 2022 15:05:59 +0100 Subject: [PATCH] Add db in INSTALL.md --- INSTALL.md | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index e77e1b9..fe391de 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -3,14 +3,40 @@ Initial requirements ``` # apt install screen -# adduser etherpad +``` + +Create DB +========= + +``` +# apt install postgresql postgresql-client +# systemctl enable --now postgresql +``` + +Check /etc/postgresql/xx/main/pg_hba.conf for localhost contains +``` +host all all 127.0.0.0/24 md5 +``` + +``` +# su - postgres +$ createuser +$ createdb -O +$ psql + ALTER USER WITH PASSWORD ' ; + ALTER ROLE; + \q ``` Install Etherpad-lite ===================== -Log as etherpad user -`# su etherpad && cd` +Add etherpad user + +``` +# adduser etherpad +# su etherpad && cd +``` Install and run etherpad ```