usermod does not change group ownership of home dir

Former-commit-id: 17355c9e42
This commit is contained in:
David Boreham 2023-02-24 22:44:50 -07:00
parent 467ff235ba
commit 9480b4082e

View File

@ -22,7 +22,7 @@ RUN \
groupmod -g ${CERC_HOST_GID} ${USERNAME} ; \ groupmod -g ${CERC_HOST_GID} ${USERNAME} ; \
fi \ fi \
&& if [ ${CERC_HOST_UID} -ne 1000 ] ; then \ && 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 fi
RUN \ RUN \