| 
				
			 | 
			
			
				@@ -646,6 +646,17 @@ function update_default_domain { 
			 | 
		
	
		
			
			| 
				646
			 | 
			
				646
			 | 
			
			
				         if [ ! -d /etc/prosody/certs ]; then 
			 | 
		
	
		
			
			| 
				647
			 | 
			
				647
			 | 
			
			
				             mkdir /etc/prosody/certs 
			 | 
		
	
		
			
			| 
				648
			 | 
			
				648
			 | 
			
			
				         fi 
			 | 
		
	
		
			
			| 
				
			 | 
			
				649
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				650
			 | 
			
			
				+        if [[ $(cert_exists chat.${DEFAULT_DOMAIN_NAME} pem) == "1" ]]; then 
			 | 
		
	
		
			
			| 
				
			 | 
			
				651
			 | 
			
			
				+            sed -i 's|--Component "conference.|Component "chat.|g' /etc/prosody/prosody.cfg.lua 
			 | 
		
	
		
			
			| 
				
			 | 
			
				652
			 | 
			
			
				+        fi 
			 | 
		
	
		
			
			| 
				
			 | 
			
				653
			 | 
			
			
				+        if [[ $(cert_exists xmpp.${DEFAULT_DOMAIN_NAME} pem) == "1" ]]; then 
			 | 
		
	
		
			
			| 
				
			 | 
			
				654
			 | 
			
			
				+            sed -i 's|--Component "conference.|Component "xmpp.|g' /etc/prosody/prosody.cfg.lua 
			 | 
		
	
		
			
			| 
				
			 | 
			
				655
			 | 
			
			
				+        fi 
			 | 
		
	
		
			
			| 
				
			 | 
			
				656
			 | 
			
			
				+        if [[ $(cert_exists conference.${DEFAULT_DOMAIN_NAME} pem) == "1" ]]; then 
			 | 
		
	
		
			
			| 
				
			 | 
			
				657
			 | 
			
			
				+            sed -i 's|--Component "conference.|Component "conference.|g' /etc/prosody/prosody.cfg.lua 
			 | 
		
	
		
			
			| 
				
			 | 
			
				658
			 | 
			
			
				+        fi 
			 | 
		
	
		
			
			| 
				
			 | 
			
				659
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				649
			 | 
			
				660
			 | 
			
			
				         cp /etc/ssl/private/xmpp* /etc/prosody/certs 
			 | 
		
	
		
			
			| 
				650
			 | 
			
				661
			 | 
			
			
				         cp /etc/ssl/private/${DEFAULT_DOMAIN_NAME}* /etc/prosody/certs 
			 | 
		
	
		
			
			| 
				651
			 | 
			
				662
			 | 
			
			
				         cp /etc/ssl/certs/xmpp* /etc/prosody/certs 
			 |