Mise à jour de 'services/pad.libre-service.eu.md'
This commit is contained in:
parent
04429b2318
commit
be0633c876
1 changed files with 4 additions and 3 deletions
|
@ -92,13 +92,14 @@ apt install npm
|
|||
Créer un utilisateur (« role » en langage Pgsql) :
|
||||
|
||||
```
|
||||
su -c "psql" - postgres
|
||||
CREATE ROLE etherpad WITH LOGIN PASSWORD 'xxxxxxxxxxxxx';
|
||||
su -c "psql -c \"CREATE ROLE etherpad WITH LOGIN PASSWORD 'NJPvjmneADaYgdShrU47bL';\"" - postgres
|
||||
su -c "psql -c \"\du+;\"" - postgres
|
||||
```
|
||||
|
||||
Créer une base de données :
|
||||
```
|
||||
CREATE DATABASE etherpad WITH OWNER etherpad TEMPLATE template0 ENCODING UTF8 LC_COLLATE 'fr_FR.UTF-8' LC_CTYPE 'fr_FR.UTF-8';
|
||||
su -c "psql -c \"CREATE DATABASE etherpad WITH OWNER etherpad TEMPLATE template0 ENCODING UTF8 LC_COLLATE 'fr_FR.UTF-8' LC_CTYPE 'fr_FR.UTF-8';\"" - postgres
|
||||
su -c "psql -c \"\l;\"" - postgres
|
||||
```
|
||||
|
||||
Donner l'accès en éditant le ficher `/etc/postgresql/13/main/pg_hba.conf` :
|
||||
|
|
Loading…
Reference in a new issue