Add db in INSTALL.md

This commit is contained in:
Bastien Lacoste 2022-02-20 15:05:59 +01:00 committed by admin666
parent 609a02ea72
commit 530fc93ee0
1 changed files with 29 additions and 3 deletions

View File

@ -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 <REDACTED_USER>
$ createdb <REDACTED_DB> -O <REDACTED_USER>
$ psql <REDACTED_DB>
ALTER USER <REDACTED_USER> WITH PASSWORD '<REDACTED_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
```