diff --git a/src/freedombone-app-xmpp b/src/freedombone-app-xmpp index 1aaad054..74786d38 100755 --- a/src/freedombone-app-xmpp +++ b/src/freedombone-app-xmpp @@ -158,6 +158,14 @@ function update_prosody_modules { cd /var/lib/prosody/prosody-modules hg pull hg update + + # change to using profile rather than pep and vcard modules + if grep '"pep"' /etc/prosody/prosody.cfg.lua; then + if grep '"vcard"' /etc/prosody/prosody.cfg.lua; then + sed -i 's|"pep"|"profile"|g' /etc/prosody/prosody.cfg.lua + sed -i '/"vcard"/d' /etc/prosody/prosody.cfg.lua + fi + fi } function upgrade_xmpp_server {