Avoid repeated disables

This commit is contained in:
Bob Mottram 2016-11-10 17:40:44 +00:00
parent ad0405d94c
commit 343427ee1c
1 changed files with 12 additions and 4 deletions

View File

@ -56,13 +56,21 @@ function jitsi_disable_google_spyware {
# 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
if ! grep '//ga(' /usr/share/jitsi-meet/analytics.js; then
sed -i 's|ga(|//ga(|g' /usr/share/jitsi-meet/analytics.js
fi
if ! grep '//action +' /usr/share/jitsi-meet/analytics.js; then
sed -i 's|action +|//action +|g' /usr/share/jitsi-meet/analytics.js
fi
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
if ! grep '//ga(' /usr/share/jitsi-meet/libs/analytics.js; then
sed -i 's|ga(|//ga(|g' /usr/share/jitsi-meet/libs/analytics.js
fi
if ! grep '//action +' /usr/share/jitsi-meet/libs/analytics.js; then
sed -i 's|action +|//action +|g' /usr/share/jitsi-meet/libs/analytics.js
fi
}
function change_password_jitsi {