diff options
| author | Aaron Bohy <aab@odoo.com> | 2014-12-13 10:21:07 +0100 |
|---|---|---|
| committer | Simon Lejeune <sle@openerp.com> | 2014-12-15 10:41:10 +0100 |
| commit | b6b73551dbbb3079f043920f21554b945fa4870e (patch) | |
| tree | 0ce7a9ad56542ce4342ebadc8c24d9bdc888e45f /setup/redhat | |
| parent | 42fbb5fd71f61e38b6a8f4628ce92a0d3dfb6055 (diff) | |
[IMP] Packaging: Debian, RedHat: No more superuser for odoo role
only create db
Diffstat (limited to 'setup/redhat')
| -rw-r--r-- | setup/redhat/postinstall.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setup/redhat/postinstall.sh b/setup/redhat/postinstall.sh index 04ea928b13a..b9ef1f908e0 100644 --- a/setup/redhat/postinstall.sh +++ b/setup/redhat/postinstall.sh @@ -13,8 +13,8 @@ if ! getent passwd | grep -q "^odoo:"; then groupadd $ODOO_GROUP adduser --system --no-create-home $ODOO_USER -g $ODOO_GROUP fi -# Register "$ODOO_USER" as a postgres superuser -su - postgres -c "createuser -s $ODOO_USER" 2> /dev/null || true +# Register "$ODOO_USER" as a postgres user with "Create DB" role attribute +su - postgres -c "createuser -d -R -S $ODOO_USER" 2> /dev/null || true # Configuration file mkdir -p $ODOO_CONFIGURATION_DIR # can't copy debian config-file as addons_path is not the same |
