Add db in INSTALL.md
This commit is contained in:
parent
609a02ea72
commit
530fc93ee0
32
INSTALL.md
32
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 <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
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue