Ensure that PEP gets fixed after an upgrade
This commit is contained in:
parent
40ec74c329
commit
f2524741ed
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue