Try to fix pep breakage
This commit is contained in:
parent
8791750811
commit
4cdef3f52a
|
@ -343,10 +343,14 @@ function update_prosody_modules {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# change to using pep rather than profile modules
|
# change to using pep rather than profile modules
|
||||||
if grep '"profile"' /etc/prosody/prosody.cfg.lua; then
|
if grep '"pep"' /etc/prosody/prosody.cfg.lua; then
|
||||||
systemctl stop prosody
|
# 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
|
sed -i 's|"profile"|"pep"|g' /etc/prosody/prosody.cfg.lua
|
||||||
systemctl start prosody
|
systemctl restart prosody
|
||||||
fi
|
fi
|
||||||
if ! grep '"vcard"' /etc/prosody/prosody.cfg.lua; then
|
if ! grep '"vcard"' /etc/prosody/prosody.cfg.lua; then
|
||||||
systemctl stop prosody
|
systemctl stop prosody
|
||||||
|
|
Loading…
Reference in New Issue