Преглед на файлове

Ensure that PEP gets fixed after an upgrade

Bob Mottram преди 8 години
родител
ревизия
f2524741ed
променени са 1 файла, в които са добавени 8 реда и са изтрити 0 реда
  1. 8
    0
      src/freedombone-app-xmpp

+ 8
- 0
src/freedombone-app-xmpp Целия файл

@@ -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 {