| 
				
			 | 
			
			
				@@ -123,9 +123,11 @@ function icecast_convert_files { 
			 | 
		
	
		
			
			| 
				123
			 | 
			
				123
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				124
			 | 
			
				124
			 | 
			
			
				     echo $'Converting any mp3 files to ogg format' 
			 | 
		
	
		
			
			| 
				125
			 | 
			
				125
			 | 
			
			
				     find . -type f -name '*.mp3' -exec bash -c 'ffmpeg -i "$0" -c:a libvorbis -q:a 4 "${0/%mp3/ogg}"' '{}' \; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				126
			 | 
			
			
				+    find . -name "*.mp3" -print0 | xargs -0 rm -f 
			 | 
		
	
		
			
			| 
				126
			 | 
			
				127
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				127
			 | 
			
				128
			 | 
			
			
				     echo $'Converting any mp4 files to ogv format' 
			 | 
		
	
		
			
			| 
				128
			 | 
			
				129
			 | 
			
			
				     find . -type f -name '*.mp4' -exec bash -c 'ffmpeg -i "$0" -c:a libvorbis -q:a 4 "${0/%mp3/ogv}"' '{}' \; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				130
			 | 
			
			
				+    find . -name "*.mp4" -print0 | xargs -0 rm -f 
			 | 
		
	
		
			
			| 
				129
			 | 
			
				131
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				130
			 | 
			
				132
			 | 
			
			
				     chown -R icecast2:icecast $ICECAST_DIR 
			 | 
		
	
		
			
			| 
				131
			 | 
			
				133
			 | 
			
			
				 } 
			 |