|  | @@ -158,6 +158,14 @@ function update_prosody_modules {
 | 
	
		
			
			| 158 | 158 |      cd /var/lib/prosody/prosody-modules
 | 
	
		
			
			| 159 | 159 |      hg pull
 | 
	
		
			
			| 160 | 160 |      hg update
 | 
	
		
			
			|  | 161 | +
 | 
	
		
			
			|  | 162 | +    # change to using profile rather than pep and vcard modules
 | 
	
		
			
			|  | 163 | +    if grep '"pep"' /etc/prosody/prosody.cfg.lua; then
 | 
	
		
			
			|  | 164 | +        if grep '"vcard"' /etc/prosody/prosody.cfg.lua; then
 | 
	
		
			
			|  | 165 | +            sed -i 's|"pep"|"profile"|g' /etc/prosody/prosody.cfg.lua
 | 
	
		
			
			|  | 166 | +            sed -i '/"vcard"/d' /etc/prosody/prosody.cfg.lua
 | 
	
		
			
			|  | 167 | +        fi
 | 
	
		
			
			|  | 168 | +    fi
 | 
	
		
			
			| 161 | 169 |  }
 | 
	
		
			
			| 162 | 170 |  
 | 
	
		
			
			| 163 | 171 |  function upgrade_xmpp_server {
 |