[enh] Give right to create db to odoo psql user

This commit is contained in:
Zamentur aka ljf 2015-11-26 19:37:44 +01:00
parent a34cd3abff
commit e92e23a1ab

View file

@ -48,7 +48,8 @@ else
# Initialize installation # Initialize installation
sudo apt-get -y -qq install postgresql sudo apt-get -y -qq install postgresql
sudo su - postgres -c "createuser -s odoo" 2> /dev/null || true sudo su - postgres -c "echo \"CREATE USER odoo WITH PASSWORD '$admin_password';\" | psql" 2> /dev/null || true
sudo su - postgres -c "echo \"ALTER ROLE odoo WITH CREATEDB;\" | psql" 2> /dev/null || true
sudo apt-get -y -qq install odoo sudo apt-get -y -qq install odoo