1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/libreerp_ynh.git synced 2024-09-03 19:36:13 +02:00

[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
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