From 632dc507e70cb5feb150e024b74907c18c3bbe63 Mon Sep 17 00:00:00 2001 From: william-andre Date: Thu, 30 Nov 2023 13:32:48 +0100 Subject: [PATCH] [FIX] install: do not create superuser for postgres MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The preferred/safe way of running Odoo is with a standard user, with only the right to create a database. See https://github.com/odoo/odoo/commit/b6b73551dbbb3079f043920f21554b945fa4870e closes odoo/documentation#6765 X-original-commit: df8114e591f0f0f79c4a7e7a23c1682693c38b0f Signed-off-by: Antoine Vandevenne (anv) Signed-off-by: William André (wan) --- content/administration/install/source.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/administration/install/source.rst b/content/administration/install/source.rst index 3b2772571..7be3c6cc7 100644 --- a/content/administration/install/source.rst +++ b/content/administration/install/source.rst @@ -225,7 +225,7 @@ PostgreSQL user. .. code-block:: console - $ sudo -u postgres createuser -s $USER + $ sudo -u postgres createuser -d -R -S $USER $ createdb $USER .. note:: @@ -250,7 +250,7 @@ PostgreSQL user. .. code-block:: console - $ sudo -u postgres createuser -s $USER + $ sudo -u postgres createuser -d -R -S $USER $ createdb $USER .. note::