mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	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:
		@@ -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
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user