OpusVL / docker-odoo-custom

An Odoo docker image with extended capabilities and fixes over the official one
Other
1 stars 1 forks source link

[11.0] and [12.0] entrypoints do not chown /var/lib/odoo as odoo user #14

Open ShreeOpusVL opened 5 years ago

ShreeOpusVL commented 5 years ago

This means for any 11.0 or 12.0 projects, the volume mount for /var/lib/odoo must have the following command run against it:

chown -R 101 <path/to/var/lib/odoo/volume>
Nick-OpusVL commented 5 years ago

The correct command is (in docker-compose):

docker-compose run --rm -u root odoo chown -R odoo:odoo /var/lib/odoo

More generally, use the username 'odoo' inside whatever environment Odoo is running in rather than the UID, because you can guarantee it won't be 101 on everyone's environment.