diff --git a/scripts/docker-entrypoint.sh b/scripts/docker-entrypoint.sh index d2451720e..2028413d1 100644 --- a/scripts/docker-entrypoint.sh +++ b/scripts/docker-entrypoint.sh @@ -10,7 +10,7 @@ map_uidgid() { if [[ ${USERMAP_NEW_UID} != "${USERMAP_ORIG_UID}" || ${USERMAP_NEW_GID} != "${USERMAP_ORIG_GID}" ]]; then echo "Mapping UID and GID for paperless:paperless to $USERMAP_NEW_UID:$USERMAP_NEW_GID" usermod -u "${USERMAP_NEW_UID}" paperless - groupmod -g "${USERMAP_NEW_GID}" paperless + groupmod -o -g "${USERMAP_NEW_GID}" paperless fi }