From 31a6d6943d0d368a4ed1c6d6430dfd5d8bc968db Mon Sep 17 00:00:00 2001 From: Qwann Date: Sun, 2 Oct 2016 14:23:39 +0200 Subject: [PATCH] =?UTF-8?q?Django=20peut=20cr=C3=A9er=20des=20db=20Utile?= =?UTF-8?q?=20pour=20lancer=20les=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- provisioning/bootstrap.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/provisioning/bootstrap.sh b/provisioning/bootstrap.sh index 13075f3..e7e314b 100644 --- a/provisioning/bootstrap.sh +++ b/provisioning/bootstrap.sh @@ -15,6 +15,7 @@ apt-get update && apt-get install -y python3-pip python3-dev \ sudo -u postgres createdb $DBNAME sudo -u postgres createuser -SDR $DBUSER sudo -u postgres psql -c "ALTER USER $DBUSER WITH PASSWORD '$DBPASSWD';" +sudo -u postgres psql -c "ALTER USER $DBUSER CREATEDB;" sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE $DBNAME TO $DBUSER;" # Mise en place du .bash_profile pour tout configurer lors du `vagrant ssh`