Allow non-unique GIDs

Need to allow non-unique group ids, so paperless can map to an existing GID.

The comment says the map_uidgid() function came from docker-gitlab, the same fix was applied there too:
  c80bd87662
This commit is contained in:
ljm42
2020-01-05 18:20:03 -08:00
committed by GitHub
parent e0da952e64
commit ad42e7fabe

View File

@@ -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
}