]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
fix issue 374 440/head
authoraddi <addi@addi.ch>
Fri, 18 Mar 2022 22:26:04 +0000 (23:26 +0100)
committeraddi <addi@addi.ch>
Fri, 18 Mar 2022 22:26:04 +0000 (23:26 +0100)
docker/docker-entrypoint.sh

index e1bca5e4e6368bf0b1f8f772475dff63d6b66a47..7a7bd6781bdba05888123cea9cfac2c183b1782b 100755 (executable)
@@ -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
 }