Ensure that upgrades don't reinstall google spyware
This commit is contained in:
parent
28d1a178d8
commit
ad0405d94c
|
@ -51,6 +51,20 @@ jitsi_variables=(ONION_ONLY
|
||||||
DEFAULT_DOMAIN_NAME
|
DEFAULT_DOMAIN_NAME
|
||||||
MY_USERNAME)
|
MY_USERNAME)
|
||||||
|
|
||||||
|
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 change_password_jitsi {
|
function change_password_jitsi {
|
||||||
echo -n ''
|
echo -n ''
|
||||||
}
|
}
|
||||||
|
@ -117,7 +131,7 @@ function reconfigure_jitsi {
|
||||||
}
|
}
|
||||||
|
|
||||||
function upgrade_jitsi {
|
function upgrade_jitsi {
|
||||||
echo -n ''
|
jitsi_disable_google_spyware
|
||||||
}
|
}
|
||||||
|
|
||||||
function backup_local_jitsi {
|
function backup_local_jitsi {
|
||||||
|
@ -197,20 +211,6 @@ function remove_jitsi {
|
||||||
remove_ddns_domain $JITSI_DOMAIN_NAME
|
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 {
|
function install_jitsi {
|
||||||
if [[ "$(can_install_videobridge)" == "0" ]]; then
|
if [[ "$(can_install_videobridge)" == "0" ]]; then
|
||||||
echo $'jitsi meet/videobridge can only be installed on i386 or amd64 architectures'
|
echo $'jitsi meet/videobridge can only be installed on i386 or amd64 architectures'
|
||||||
|
|
Loading…
Reference in New Issue