[IMP] Odoo 15.0-17.0: ensure the correct permissions for entrypoint

This commit is contained in:
kobros-tech 2024-07-21 16:10:57 +03:00
parent c8297f5332
commit 60ee1e572d
3 changed files with 9 additions and 0 deletions

View File

@ -67,6 +67,9 @@ RUN curl -o odoo.deb -sSL http://nightly.odoo.com/${ODOO_VERSION}/nightly/deb/od
COPY ./entrypoint.sh / COPY ./entrypoint.sh /
COPY ./odoo.conf /etc/odoo/ 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 # 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 \ RUN chown odoo /etc/odoo/odoo.conf \
&& mkdir -p /mnt/extra-addons \ && mkdir -p /mnt/extra-addons \

View File

@ -81,6 +81,9 @@ RUN curl -o odoo.deb -sSL http://nightly.odoo.com/${ODOO_VERSION}/nightly/deb/od
COPY ./entrypoint.sh / COPY ./entrypoint.sh /
COPY ./odoo.conf /etc/odoo/ 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 # 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 \ RUN chown odoo /etc/odoo/odoo.conf \
&& mkdir -p /mnt/extra-addons \ && mkdir -p /mnt/extra-addons \

View File

@ -83,6 +83,9 @@ RUN curl -o odoo.deb -sSL http://nightly.odoo.com/${ODOO_VERSION}/nightly/deb/od
COPY ./entrypoint.sh / COPY ./entrypoint.sh /
COPY ./odoo.conf /etc/odoo/ 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 # 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 \ RUN chown odoo /etc/odoo/odoo.conf \
&& mkdir -p /mnt/extra-addons \ && mkdir -p /mnt/extra-addons \