Ensure that PEP gets fixed after an upgrade

This commit is contained in:
Bob Mottram 2017-01-07 12:00:33 +00:00
parent 40ec74c329
commit f2524741ed
1 changed files with 8 additions and 0 deletions

View File

@ -158,6 +158,14 @@ function update_prosody_modules {
cd /var/lib/prosody/prosody-modules cd /var/lib/prosody/prosody-modules
hg pull hg pull
hg update 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 { function upgrade_xmpp_server {