From 60ee1e572d41fc9d55c473cd73c16884d913ca7a Mon Sep 17 00:00:00 2001 From: kobros-tech Date: Sun, 21 Jul 2024 16:10:57 +0300 Subject: [PATCH] [IMP] Odoo 15.0-17.0: ensure the correct permissions for entrypoint --- 15.0/Dockerfile | 3 +++ 16.0/Dockerfile | 3 +++ 17.0/Dockerfile | 3 +++ 3 files changed, 9 insertions(+) diff --git a/15.0/Dockerfile b/15.0/Dockerfile index 2e553a324..86e859627 100644 --- a/15.0/Dockerfile +++ b/15.0/Dockerfile @@ -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 \ diff --git a/16.0/Dockerfile b/16.0/Dockerfile index 6d90a0ac9..be0342e71 100644 --- a/16.0/Dockerfile +++ b/16.0/Dockerfile @@ -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 \ diff --git a/17.0/Dockerfile b/17.0/Dockerfile index 641de2132..1c1b0d4ef 100644 --- a/17.0/Dockerfile +++ b/17.0/Dockerfile @@ -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 \