[enh] Give right to create db to odoo psql user
This commit is contained in:
parent
a34cd3abff
commit
e92e23a1ab
1 changed files with 2 additions and 1 deletions
|
@ -48,7 +48,8 @@ else
|
|||
|
||||
# Initialize installation
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue