mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 19:17:13 -05:00 
			
		
		
		
	fix issue 374
This commit is contained in:
		
							parent
							
								
									d4f468208e
								
							
						
					
					
						commit
						1782d00cc5
					
				@ -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
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user