diff options
author | James Mills <1290234+prologic@users.noreply.github.com> | 2020-01-30 09:49:23 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-30 09:49:23 +1000 |
commit | 38ad89fc2bc6ec46e88a3428d81e29e0f46c4b18 (patch) | |
tree | 1c8a04a7576982cb8a724a711ddb0bd226143f2a /netdata-installer.sh | |
parent | 2979efe03161499e9a53f76d843c2fd7e5006a92 (diff) |
Adds support for opting out of telemetry via the DO_NOT_TRACK envirnment variable (#7846)
* Added support for opting out of telemtry via the DO_NOT_TRACK environment variable
* Added support for DO_NOT_TRACK=1 in anonymous-statistics.sh and minor cleanup in Dockerfile and run.sh entrypoint
* Allow DO_NOT_TRACK to be either non-zero or non-empty
* Update md5sum of kickstart-static64.sh in docs
* Fixed a bug in netdata-installer.sh
* Revert changes to daemon/main.c (testing onyl)
* Update docs/anonymous-statistics.md
Co-Authored-By: Mansour Behabadi <57921115+ncmans@users.noreply.github.com>
Co-authored-by: Mansour Behabadi <57921115+ncmans@users.noreply.github.com>
Diffstat (limited to 'netdata-installer.sh')
-rwxr-xr-x | netdata-installer.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/netdata-installer.sh b/netdata-installer.sh index b18c00dd8e..80d2553dc6 100755 --- a/netdata-installer.sh +++ b/netdata-installer.sh @@ -179,7 +179,7 @@ USAGE: ${PROGRAM} [options] --zlib-is-really-here or --libs-are-really-here If you get errors about missing zlib or libuuid but you know it is available, you might have a broken pkg-config. Use this option to proceed without checking pkg-config. - --disable-telemetry Use this flag to opt-out from our anonymous telemetry progam. + --disable-telemetry Use this flag to opt-out from our anonymous telemetry progam. (DO_NOT_TRACK=1) Netdata will by default be compiled with gcc optimization -O2 If you need to pass different CFLAGS, use something like this: @@ -304,7 +304,9 @@ if [ -z "$NETDATA_DISABLE_TELEMETRY" ]; then ${TPUT_YELLOW}${TPUT_BOLD}NOTE${TPUT_RESET}: Anonymous usage stats will be collected and sent to Google Analytics. - To opt-out, pass --disable-telemetry option to the installer. + To opt-out, pass --disable-telemetry option to the installer or export + the enviornment variable DO_NOT_TRACK to a non-zero or non-empty value + (e.g: export DO_NOT_TRACK=1). BANNER4 fi @@ -885,6 +887,10 @@ install_go # ----------------------------------------------------------------------------- progress "Telemetry configuration" +if [ ! "$DO_NOT_TRACK" -eq 0 ] || [ -n "$DO_NOT_TRACK" ]; then + NETDATA_DISABLE_TELEMETRY=1 +fi + # Opt-out from telemetry program if [ -n "${NETDATA_DISABLE_TELEMETRY+x}" ]; then run touch "${NETDATA_USER_CONFIG_DIR}/.opt-out-from-anonymous-statistics" |