From 1f21eb30021f1af80c01e74c40380909e0b4aca7 Mon Sep 17 00:00:00 2001 From: Fabien BOURGEOIS Date: Tue, 1 Mar 2022 10:53:57 +0100 Subject: [PATCH] [FIX]Odoo backups : need root --- odoo/backups/Dockerfile | 1 + odoo/backups/Dockerfile.c7 | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/odoo/backups/Dockerfile b/odoo/backups/Dockerfile index dd34dc6..a50240d 100644 --- a/odoo/backups/Dockerfile +++ b/odoo/backups/Dockerfile @@ -21,4 +21,5 @@ RUN mkdir -p backups VOLUME /var/log VOLUME /home/odoo/backups +USER root CMD ["bash", "launch.sh"] diff --git a/odoo/backups/Dockerfile.c7 b/odoo/backups/Dockerfile.c7 index b4d96f5..242f2ab 100644 --- a/odoo/backups/Dockerfile.c7 +++ b/odoo/backups/Dockerfile.c7 @@ -12,11 +12,12 @@ COPY crontab /home/odoo/ COPY backup.template /home/odoo/ COPY hc.template /home/odoo/ COPY plan.py /home/odoo/ -COPY launch.c7.sh /home/odoo/ +COPY launch.c7.sh /home/odoo/launch.sh RUN mkdir -p backups # Avoid overlayfs bug with tail VOLUME /var/log VOLUME /home/odoo/backups +USER root CMD ["bash", "launch.sh"]