Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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#111877 X-original-commit: 8e1ebd8 Signed-off-by: Christophe Monniez (moc) <[email protected]>
- Loading branch information