From e92e23a1ab3a6bd64cab5e2f1e6782d50104f8e4 Mon Sep 17 00:00:00 2001 From: Zamentur aka ljf Date: Thu, 26 Nov 2015 19:37:44 +0100 Subject: [PATCH] [enh] Give right to create db to odoo psql user --- scripts/install | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 46b7065..d738796 100644 --- a/scripts/install +++ b/scripts/install @@ -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