File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed
Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,10 @@ ENV ODOO_RC /etc/odoo/odoo.conf
110110
111111COPY wait-for-psql.py /usr/local/bin/wait-for-psql.py
112112
113+ COPY fixperms /fixperms
114+ RUN chmod +x /fixperms
115+
116+
113117# Set default user when running the container
114118USER odoo
115119
Original file line number Diff line number Diff line change @@ -34,6 +34,12 @@ Future improvement: write another outer script that will clone a specific
3434tag in a tempdir, and release what was pushed to git rather than what
3535happens to be in your working copy - or make CI do it on new tag/PR/whatever.
3636
37+ # Fixing volume permissions
38+
39+ ``` #!sh
40+ docker-compose run --rm -u root odoo /fixperms
41+ ```
42+
3743# Locales
3844
3945Locales are generated for en_GB, and are set as default in the environment.
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -e
3+ if [ " $( id -u) " != 0 ]
4+ then
5+ echo " $0 : WARNING: You aren't running as superuser so this might not work" >&2
6+ fi
7+
8+ chown -R odoo:odoo /var/lib/odoo
You can’t perform that action at this time.
0 commit comments