From 9480b4082eeac25e55bbc68a538c65109a820ed4 Mon Sep 17 00:00:00 2001 From: David Boreham Date: Fri, 24 Feb 2023 22:44:50 -0700 Subject: [PATCH] usermod does not change group ownership of home dir Former-commit-id: 17355c9e4292a042e7c8416aafafb044e0fde3e2 --- app/data/container-build/cerc-builder-js/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/data/container-build/cerc-builder-js/Dockerfile b/app/data/container-build/cerc-builder-js/Dockerfile index fb7043c9..35c9a972 100644 --- a/app/data/container-build/cerc-builder-js/Dockerfile +++ b/app/data/container-build/cerc-builder-js/Dockerfile @@ -22,7 +22,7 @@ RUN \ groupmod -g ${CERC_HOST_GID} ${USERNAME} ; \ fi \ && if [ ${CERC_HOST_UID} -ne 1000 ] ; then \ - usermod -u ${CERC_HOST_UID} -g ${CERC_HOST_GID} ${USERNAME} ; \ + usermod -u ${CERC_HOST_UID} -g ${CERC_HOST_GID} ${USERNAME} && chown ${CERC_HOST_UID}:${CERC_HOST_GID} /home/${USERNAME} ; \ fi RUN \