Skip to content
Snippets Groups Projects
Commit 4cdef3f5 authored by Bob Mottram's avatar Bob Mottram
Browse files

Try to fix pep breakage

parent 87917508
No related branches found
No related tags found
No related merge requests found
......@@ -343,10 +343,14 @@ function update_prosody_modules {
fi
# change to using pep rather than profile modules
if grep '"profile"' /etc/prosody/prosody.cfg.lua; then
systemctl stop prosody
if grep '"pep"' /etc/prosody/prosody.cfg.lua; then
# This strange dance seems to fix occasional breakage of PEP
# Is there a better solution?
sed -i 's|"pep"|"profile"|g' /etc/prosody/prosody.cfg.lua
systemctl restart prosody
sleep 4
sed -i 's|"profile"|"pep"|g' /etc/prosody/prosody.cfg.lua
systemctl start prosody
systemctl restart prosody
fi
if ! grep '"vcard"' /etc/prosody/prosody.cfg.lua; then
systemctl stop prosody
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment