From 326ba36c430721335f8e93613fc236b2de050191 Mon Sep 17 00:00:00 2001 From: rhino Date: Tue, 13 Jan 2026 14:40:08 +0000 Subject: [PATCH] feat: Grant database creation privilege to ODOO_DB_USER Grant database creation privilege to ODOO_DB_USER so odoo database manager can be used. --- scripts/postgres/init-db/10-create-roles.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/postgres/init-db/10-create-roles.sh b/scripts/postgres/init-db/10-create-roles.sh index ace916c..d709ec9 100755 --- a/scripts/postgres/init-db/10-create-roles.sh +++ b/scripts/postgres/init-db/10-create-roles.sh @@ -30,4 +30,7 @@ create_role() { create_role "${GITEA_DB_USER}" "${GITEA_DB_PASSWORD}" create_role "${ODOO_DB_USER}" "${ODOO_DB_PASSWORD}" +echo "Grant database creation privilege to ODOO_DB_USER" +psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" -c "ALTER USER \"${ODOO_DB_USER}\" WITH CREATEROLE CREATEDB;" + echo "[init] create-roles finished" -- 2.49.1