This commit is contained in:
Bob Mottram 2018-05-06 12:47:50 +01:00
parent c8fe0145a1
commit 743cd8dd32
1 changed files with 2 additions and 2 deletions

View File

@ -53,12 +53,12 @@ function block_firefox_telemetry {
# to be on the safe side
# Within firefox source code see submit_telemetry_data.py
if ! grep 'telemetry.mozilla' /etc/hosts; then
if ! grep -q 'telemetry.mozilla' /etc/hosts; then
echo '127.0.0.1 telemetry.mozilla.org' >> /etc/hosts
echo '127.0.0.1 incoming.telemetry.mozilla.org' >> /etc/hosts
fi
if grep "$FIREFOX_TELEMETRY_IP" /etc/firewall.conf; then
if grep -q "$FIREFOX_TELEMETRY_IP" /etc/firewall.conf; then
return
fi