mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Merge pull request #440 from addich/fix-374
Allow USERMAP_UID to re-use existing UIDs
This commit is contained in:
		| @@ -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 | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Felix E
					Felix E