[IMP] Odoo 15.0-17.0: ensure the correct permissions for entrypoint
This commit is contained in:
parent
c8297f5332
commit
60ee1e572d
@ -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 \
|
||||||
|
@ -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 \
|
||||||
|
@ -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 \
|
||||||
|
Loading…
Reference in New Issue
Block a user