From 28d1a178d822bb24274602931dca9b0f14408b66 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 10 Nov 2016 17:29:49 +0000 Subject: [PATCH] Disable google spyware within jitsi meet --- src/freedombone-app-jitsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/freedombone-app-jitsi b/src/freedombone-app-jitsi index d255f0d2..0d50f973 100755 --- a/src/freedombone-app-jitsi +++ b/src/freedombone-app-jitsi @@ -197,6 +197,20 @@ function remove_jitsi { remove_ddns_domain $JITSI_DOMAIN_NAME } +function jitsi_disable_google_spyware { + # Presumably they included Google Analytics for benign reasons, but it's + # an obvious security problem. This should disable it. + sed -i "s|Google Analytics|Google Spyware deactivated|g" /usr/share/jitsi-meet/analytics.js + sed -i "s|www.google-analytics.com|${JITSI_DOMAIN_NAME}|g" /usr/share/jitsi-meet/analytics.js + sed -i 's|ga(|//ga(|g' /usr/share/jitsi-meet/analytics.js + sed -i 's|action +|//action +|g' /usr/share/jitsi-meet/analytics.js + + sed -i "s|Google Analytics|Google Spyware deactivated|g" /usr/share/jitsi-meet/libs/analytics.js + sed -i "s|www.google-analytics.com|${JITSI_DOMAIN_NAME}|g" /usr/share/jitsi-meet/libs/analytics.js + sed -i 's|ga(|//ga(|g' /usr/share/jitsi-meet/libs/analytics.js + sed -i 's|action +|//action +|g' /usr/share/jitsi-meet/libs/analytics.js +} + function install_jitsi { if [[ "$(can_install_videobridge)" == "0" ]]; then echo $'jitsi meet/videobridge can only be installed on i386 or amd64 architectures' @@ -385,6 +399,8 @@ function install_jitsi { set_completion_param "jitsi domain" "$JITSI_DOMAIN_NAME" + jitsi_disable_google_spyware + systemctl restart nginx systemctl restart prosody