From 66c0164228b3e948730fc6b439ed76637933f078 Mon Sep 17 00:00:00 2001 From: sneak Date: Wed, 5 Feb 2020 02:11:33 -0800 Subject: [PATCH] remove 3p spying hostnames from codebase --- scripts/build.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/scripts/build.sh b/scripts/build.sh index 347f37c..0a490f2 100644 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -18,8 +18,17 @@ cd /netdata.git # v1.19.0 release: git checkout 5000257f0171271cb3ee2cf0fe02e8a2154ddf2e -# use the provided installer +# patch out spyware hostnames: +find . -type f -print0 | xargs -0 -P 1 -- sed -i 's#google-analytics.com#nospyware.example.com#gI' +find . -type f -print0 | xargs -0 -P 1 -- sed -i 's#googletagmanager.com#nospyware.example.com#gI' +find . -type f -print0 | xargs -0 -P 1 -- sed -i 's#my-netdata.io#nospyware.example.com#gI' +find . -type f -print0 | xargs -0 -P 1 -- sed -i 's#githubusercontent.com#nospyware.example.com#gI' +find . -type f -print0 | xargs -0 -P 1 -- sed -i 's#github.com#nospyware.example.com#gI' +find . -type f -print0 | xargs -0 -P 1 -- sed -i 's#netdata.cloud#nospyware.example.com#gI' +find . -type f -print0 | xargs -0 -P 1 -- sed -i 's#pagerduty.com#nospyware.example.com#gI' +find . -type f -print0 | xargs -0 -P 1 -- sed -i 's#shields.io#nospyware.example.com#gI' +# use the provided installer ./netdata-installer.sh --dont-wait --dont-start-it --disable-telemetry touch /etc/netdata/.opt-out-from-anonymous-statistics