|
@@ -343,10 +343,14 @@ function update_prosody_modules {
|
343
|
343
|
fi
|
344
|
344
|
|
345
|
345
|
# change to using pep rather than profile modules
|
346
|
|
- if grep '"profile"' /etc/prosody/prosody.cfg.lua; then
|
347
|
|
- systemctl stop prosody
|
|
346
|
+ if grep '"pep"' /etc/prosody/prosody.cfg.lua; then
|
|
347
|
+ # This strange dance seems to fix occasional breakage of PEP
|
|
348
|
+ # Is there a better solution?
|
|
349
|
+ sed -i 's|"pep"|"profile"|g' /etc/prosody/prosody.cfg.lua
|
|
350
|
+ systemctl restart prosody
|
|
351
|
+ sleep 4
|
348
|
352
|
sed -i 's|"profile"|"pep"|g' /etc/prosody/prosody.cfg.lua
|
349
|
|
- systemctl start prosody
|
|
353
|
+ systemctl restart prosody
|
350
|
354
|
fi
|
351
|
355
|
if ! grep '"vcard"' /etc/prosody/prosody.cfg.lua; then
|
352
|
356
|
systemctl stop prosody
|