[odoo-web] Land permission changes directives
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [odoo-web] Land permission changes directives
- Date: Thu, 14 Feb 2019 12:26:17 +0000 (UTC)
commit 06c97707b78d3660f2808d708df37026de1c6f15
Author: Andrea Veri <averi redhat com>
Date: Thu Feb 14 13:25:58 2019 +0100
Land permission changes directives
Dockerfile | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/Dockerfile b/Dockerfile
index 43873e9..e9fbc18 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -19,8 +19,11 @@ RUN sed -i 's/UID_MAX/#UID_MAX/' /etc/login.defs && \
echo 'UID_MAX 1000250000' >> /etc/login.defs && \
echo 'GID_MAX 1000250000' >> /etc/login.defs
-RUN groupadd -g 1000230000 odoogroup && \
- useradd -l -u 1000230000 -g odoogroup -s /bin/false odoouser
+RUN userdel odoo && \
+ groupadd -g 1000230000 odoo && \
+ useradd -l -u 1000230000 -g odoo -s /bin/false odoo && \
+ chown odoo:odoo -R /etc/odoo && chown odoo:odoo -R /var/log/odoo && \
+ chown odoo:odoo /var/lib/odoo
ADD plaid_ept.zip /tmp
RUN unzip plaid_ept.zip -d /opt/odoo/custom-addons
@@ -41,4 +44,4 @@ RUN apt-get purge git unzip python3-wheel python3-pip -y && apt-get autoremove -
RUN apt-get clean
WORKDIR /var/lib/odoo
-USER odoouser
+USER odoo
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]