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 /packaging/makeself/install-or-update.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 'packaging/makeself/install-or-update.sh')
-rwxr-xr-x | packaging/makeself/install-or-update.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packaging/makeself/install-or-update.sh b/packaging/makeself/install-or-update.sh index 4791ea2e92..4771f8ee25 100755 --- a/packaging/makeself/install-or-update.sh +++ b/packaging/makeself/install-or-update.sh @@ -57,6 +57,10 @@ while [ "${1}" ]; do shift 1 done +if [ ! "$DO_NOT_TRACK" -eq 0 ] || [ -n "$DO_NOT_TRACK" ]; then + REINSTALL_OPTIONS="${REINSTALL_OPTIONS} --disable-telemtry" +fi + deleted_stock_configs=0 if [ ! -f "etc/netdata/.installer-cleanup-of-stock-configs-done" ]; then |