Skip to content
Snippets Groups Projects
Commit 8e1ebd8d authored by Christophe Monniez's avatar Christophe Monniez
Browse files

[FIX] packaging: fix installing deb package when user exists


When a odoo user already exists, the installation of the deb package
fails because the `/var/lib/odoo` directory does not exists.

The reason is that the postinst script is trying to change the
permissions of this directory which is only created if a odoo user does
not already exists.

With this commit, the permission changes only occurs when the directory
is created.

closes odoo/odoo#111814

Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
parent 613aaa09
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment