Disable google spyware within jitsi meet

This commit is contained in:
Bob Mottram 2016-11-10 17:29:49 +00:00
parent 2ca766199e
commit 28d1a178d8
1 changed files with 16 additions and 0 deletions

View File

@ -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