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

Remove muc logging

parent 807445f1
No related branches found
No related tags found
No related merge requests found
......@@ -203,10 +203,8 @@ function logging_off_xmpp {
# shellcheck disable=SC2001
prosody_chat_domain_str=$(echo "$prosody_chat_domain" | sed 's|\.|%2e|g')
if [ -d "/var/lib/prosody/${prosody_chat_domain_str}/muc_log" ]; then
echo "rm -rf /var/lib/prosody/${prosody_chat_domain_str}/muc_log*"
# shellcheck disable=SC2086
rm -rf /var/lib/prosody/${prosody_chat_domain_str}/muc_log*
ls -lh "/var/lib/prosody/${prosody_chat_domain_str}"
logging_restart_prosody=1
fi
......@@ -699,6 +697,16 @@ function upgrade_xmpp {
xmpp_contact_info /etc/prosody/prosody.cfg.lua
xmpp_server_blacklist /etc/prosody/prosody.cfg.lua
# remove muc logging
if grep -q '"muc_log"' /etc/prosody/prosody.cfg.lua; then
sed -i '/"muc_log"/d' /etc/prosody/prosody.cfg.lua
xmpp_restart=1
fi
if grep -q '"muc_log_http"' /etc/prosody/prosody.cfg.lua; then
sed -i '/"muc_log_http"/d' /etc/prosody/prosody.cfg.lua
xmpp_restart=1
fi
# remove any broadcast settings
if grep -q '"broadcast"' /etc/prosody/prosody.cfg.lua; then
sed -i '/broadcast/d' /etc/prosody/prosody.cfg.lua
......@@ -1251,11 +1259,9 @@ function xmpp_create_config {
echo ' modules_enabled = {';
echo ' "muc_limits";';
echo ' "muc_block_pm";';
echo ' "muc_log";';
echo ' "tls";';
echo ' "vcard_muc";';
echo ' "s2s_blacklist";';
echo ' "muc_log_http";';
echo ' }'; } >> /etc/prosody/prosody.cfg.lua
if [[ "$ONION_ONLY" == 'no' ]]; then
......
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