From 18ec91f6421e029f932a515919e0831bd0232635 Mon Sep 17 00:00:00 2001 From: Qwann Date: Wed, 28 Sep 2016 22:06:05 +0200 Subject: [PATCH] Config Vagrant partielle fixes needed --- provisioning/bootstrap.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/provisioning/bootstrap.sh b/provisioning/bootstrap.sh index b48ace5..93262db 100644 --- a/provisioning/bootstrap.sh +++ b/provisioning/bootstrap.sh @@ -9,12 +9,13 @@ DBPASSWD="4KZt3nGPLVeWSvtBZPsd9jdssdJMds78" # Installation de paquets utiles apt-get update && apt-get install -y python3-pip python3-dev \ - libpq-dev postgresql postgresql-contrib + libpq-dev postgresql postgresql-contrib libjpeg-dev # Setup Database and User 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 "GRANT ALL PRIVILEGES ON DATABASE $DBNAME TO $DBUSER;" # Mise en place du .bash_profile pour tout configurer lors du `vagrant ssh` cat > ~vagrant/.bash_profile <