Droits de CREATEDB avec -d

This commit is contained in:
Benoît S. 2017-06-09 16:40:45 +02:00
parent df475ca840
commit 9383ff8fc1

View file

@ -72,8 +72,7 @@ GitLab recommande [PostgreSQL](HowtoPostgreSQL). On utilise donc la version 9.4
Création de l'utilisateur PostgreSQL :
~~~
# sudo -u postgres createuser foo -P -D -A -R
# sudo -u postgres psql -d template1 -c 'ALTER ROLE "foo" CREATEDB;'
# sudo -u postgres createuser foo -d -P -R
~~~
> **Note** : On donne les droits CREATEDB car GitLab doit faire un DROP DATABASE puis CREATE DATABASE lors de l'installation…