From 1782d00cc5bc9946cd33d8633a908ff58ea7d696 Mon Sep 17 00:00:00 2001 From: addi Date: Fri, 18 Mar 2022 23:26:04 +0100 Subject: [PATCH] fix issue 374 --- docker/docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh index e1bca5e4e..7a7bd6781 100755 --- a/docker/docker-entrypoint.sh +++ b/docker/docker-entrypoint.sh @@ -10,7 +10,7 @@ map_uidgid() { USERMAP_NEW_GID=${USERMAP_GID:-${USERMAP_ORIG_GID:-$USERMAP_NEW_UID}} 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 + usermod -o -u "${USERMAP_NEW_UID}" paperless groupmod -o -g "${USERMAP_NEW_GID}" paperless fi }