diff --git a/debian/postinst b/debian/postinst index ae2c8323ef6..2f8f18e813b 100644 --- a/debian/postinst +++ b/debian/postinst @@ -11,7 +11,7 @@ ODOO_USER="odoo" case "${1}" in configure) if ! getent passwd | grep -q "^odoo:"; then - adduser --system --no-create-home --quiet --group $ODOO_USER + adduser --system --home $ODOO_DATA_DIR --quiet --group $ODOO_USER fi # Register "$ODOO_USER" as a postgres superuser su - postgres -c "createuser -s $ODOO_USER" 2> /dev/null || true @@ -23,7 +23,6 @@ case "${1}" in chown $ODOO_USER:$ODOO_GROUP $ODOO_LOG_DIR chmod 0750 $ODOO_LOG_DIR # Data dir - mkdir -p $ODOO_DATA_DIR chown $ODOO_USER:$ODOO_GROUP $ODOO_DATA_DIR # update-python-modules NOW otherwise invoke-rc.d openerp start will fail update-python-modules