Skip to content

Commit

Permalink
[IMP] Odoo 15.0-17.0: ensure the correct permissions for entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
kobros-tech committed Jul 21, 2024
1 parent c8297f5 commit 60ee1e5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions 15.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ RUN curl -o odoo.deb -sSL http://nightly.odoo.com/${ODOO_VERSION}/nightly/deb/od
COPY ./entrypoint.sh /
COPY ./odoo.conf /etc/odoo/

# Ensure that entrypoint script has permissions to r/w/x for owner and group, and r/_/x for others
RUN chmod 775 /entrypoint.sh

# Set permissions and Mount /var/lib/odoo to allow restoring filestore and /mnt/extra-addons for users addons
RUN chown odoo /etc/odoo/odoo.conf \
&& mkdir -p /mnt/extra-addons \
Expand Down
3 changes: 3 additions & 0 deletions 16.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ RUN curl -o odoo.deb -sSL http://nightly.odoo.com/${ODOO_VERSION}/nightly/deb/od
COPY ./entrypoint.sh /
COPY ./odoo.conf /etc/odoo/

# Ensure that entrypoint script has permissions to r/w/x for owner and group, and r/_/x for others
RUN chmod 775 /entrypoint.sh

# Set permissions and Mount /var/lib/odoo to allow restoring filestore and /mnt/extra-addons for users addons
RUN chown odoo /etc/odoo/odoo.conf \
&& mkdir -p /mnt/extra-addons \
Expand Down
3 changes: 3 additions & 0 deletions 17.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ RUN curl -o odoo.deb -sSL http://nightly.odoo.com/${ODOO_VERSION}/nightly/deb/od
COPY ./entrypoint.sh /
COPY ./odoo.conf /etc/odoo/

# Ensure that entrypoint script has permissions to r/w/x for owner and group, and r/_/x for others
RUN chmod 775 /entrypoint.sh

# Set permissions and Mount /var/lib/odoo to allow restoring filestore and /mnt/extra-addons for users addons
RUN chown odoo /etc/odoo/odoo.conf \
&& mkdir -p /mnt/extra-addons \
Expand Down

0 comments on commit 60ee1e5

Please sign in to comment.