Merge branch 'dev/create_db' into 'master'
Django peut créer des db Utile pour lancer les tests See merge request !2
This commit is contained in:
commit
1d6e139d28
1 changed files with 1 additions and 0 deletions
|
@ -15,6 +15,7 @@ apt-get update && apt-get install -y python3-pip python3-dev \
|
||||||
sudo -u postgres createdb $DBNAME
|
sudo -u postgres createdb $DBNAME
|
||||||
sudo -u postgres createuser -SDR $DBUSER
|
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 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;"
|
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`
|
# Mise en place du .bash_profile pour tout configurer lors du `vagrant ssh`
|
||||||
|
|
Loading…
Reference in a new issue