mirror of
				https://github.com/nitnelave/lldap.git
				synced 2023-04-12 14:25:13 +00:00 
			
		
		
		
	docker: Allow chown commands to fail
chown may not be allowed in containers with restricted security contexts. See https://github.com/truecharts/charts/pull/7779.
This commit is contained in:
		
							parent
							
								
									9e479d38fe
								
							
						
					
					
						commit
						7349b9069e
					
				@ -22,8 +22,8 @@ if [[ ! -r "$CONFIG_FILE" ]]; then
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
echo "> Setup permissions.."
 | 
			
		||||
find /app \! -user "$UID" -exec chown "$UID:$GID" '{}' +
 | 
			
		||||
find /data \! -user "$UID" -exec chown "$UID:$GID" '{}' +
 | 
			
		||||
find /app \! -user "$UID" -exec chown "$UID:$GID" '{}' + || true
 | 
			
		||||
find /data \! -user "$UID" -exec chown "$UID:$GID" '{}' +  || true
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
echo "> Starting lldap.."
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user