|  | @@ -48,10 +48,10 @@ matrix_variables=(ONION_ONLY
 | 
	
		
			
			| 48 | 48 |                    DEFAULT_DOMAIN_NAME)
 | 
	
		
			
			| 49 | 49 |  
 | 
	
		
			
			| 50 | 50 |  function matrix_nginx {
 | 
	
		
			
			| 51 |  | -    matrix_proxy_str='
 | 
	
		
			
			| 52 |  | -    location /matrix {
 | 
	
		
			
			| 53 |  | -        proxy_pass https://localhost:8448;
 | 
	
		
			
			| 54 |  | -        proxy_buffering on;
 | 
	
		
			
			|  | 51 | +    matrix_proxy_str=' \
 | 
	
		
			
			|  | 52 | +    location /matrix { \
 | 
	
		
			
			|  | 53 | +        proxy_pass https://localhost:8448; \
 | 
	
		
			
			|  | 54 | +        proxy_buffering on; \
 | 
	
		
			
			| 55 | 55 |      }'
 | 
	
		
			
			| 56 | 56 |  
 | 
	
		
			
			| 57 | 57 |      if [ ! -f /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME} ]; then
 | 
	
	
		
			
			|  | @@ -364,6 +364,9 @@ function remove_matrix {
 | 
	
		
			
			| 364 | 364 |      delgroup matrix
 | 
	
		
			
			| 365 | 365 |      remove_onion_service matrix ${MATRIX_PORT}
 | 
	
		
			
			| 366 | 366 |  
 | 
	
		
			
			|  | 367 | +    sed -i "/location \/matrix {/,/}/d" /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME}
 | 
	
		
			
			|  | 368 | +    systemctl restart nginx
 | 
	
		
			
			|  | 369 | +
 | 
	
		
			
			| 367 | 370 |      remove_completion_param install_matrix
 | 
	
		
			
			| 368 | 371 |      sed -i '/matrix/d' $COMPLETION_FILE
 | 
	
		
			
			| 369 | 372 |  }
 |