From 840c7f359cd8e816347087b6b1b3eea29bd8a604 Mon Sep 17 00:00:00 2001
From: remi-filament <30716308+remi-filament@users.noreply.github.com>
Date: Mon, 23 Dec 2019 14:43:56 +0100
Subject: [PATCH] Add -l option to useradd

---
 12.0.Dockerfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/12.0.Dockerfile b/12.0.Dockerfile
index c735989..778e336 100644
--- a/12.0.Dockerfile
+++ b/12.0.Dockerfile
@@ -51,7 +51,7 @@ COPY ./ssh_known_git_hosts ~root/.ssh/known_hosts
 
 # Install Odoo and remove not French translations and .git directory to limit amount of data used by container
 RUN set -x; \
-        useradd --create-home --home-dir /opt/odoo --no-log-init odoo &&\
+        useradd -l --create-home --home-dir /opt/odoo --no-log-init odoo &&\
         /bin/bash -c "mkdir -p /opt/odoo/{etc,odoo,additional_addons,private_addons,data,private}" &&\
         git clone -b 12.0 --depth 1 https://github.com/OCA/OCB.git /opt/odoo/odoo &&\
         rm -rf /opt/odoo/odoo/.git &&\
-- 
GitLab