Przeglądaj źródła

Ensure that PEP gets fixed after an upgrade

Bob Mottram 8 lat temu
rodzic
commit
f2524741ed
1 zmienionych plików z 8 dodań i 0 usunięć
  1. 8
    0
      src/freedombone-app-xmpp

+ 8
- 0
src/freedombone-app-xmpp Wyświetl plik

158
     cd /var/lib/prosody/prosody-modules
158
     cd /var/lib/prosody/prosody-modules
159
     hg pull
159
     hg pull
160
     hg update
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
 function upgrade_xmpp_server {
171
 function upgrade_xmpp_server {