Avoid repeated disables
This commit is contained in:
parent
ad0405d94c
commit
343427ee1c
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue