diff options
author | Mansour Behabadi <57921115+ncmans@users.noreply.github.com> | 2019-12-20 07:06:37 +1100 |
---|---|---|
committer | Austin S. Hemmelgarn <austin@netdata.cloud> | 2019-12-19 15:06:37 -0500 |
commit | 4edc7e907e3285aa9801e8caf651450e4fd8d2be (patch) | |
tree | 04d9265c637c1edd2f45166b100ef845f00d6a5d /packaging/makeself/install-or-update.sh | |
parent | a73d3b3ed2f8d8c03d69f385bee37d46c144d4f4 (diff) |
Add anon tracking notice for installers (#7437)
* Show notice of anonymous data collection
* Add DO_NOT_TRACK env var to docker run script
* Add disable-telemetry option to kickstart-static64
* Check if DO_NOT_TRACK is set
Diffstat (limited to 'packaging/makeself/install-or-update.sh')
-rwxr-xr-x | packaging/makeself/install-or-update.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/packaging/makeself/install-or-update.sh b/packaging/makeself/install-or-update.sh index 7733d007ae..afbe83530e 100755 --- a/packaging/makeself/install-or-update.sh +++ b/packaging/makeself/install-or-update.sh @@ -32,6 +32,7 @@ while [ "${1}" ]; do "--dont-start-it") STARTIT=0;; "--auto-update"|"-u") AUTOUPDATE=1;; "--stable-channel") RELEASE_CHANNEL="stable";; + "--disable-telemetry") DISABLE_TELEMETRY=1;; *) echo >&2 "Unknown option '${1}'. Ignoring it.";; esac shift 1 @@ -134,6 +135,15 @@ progress "Install logrotate configuration for netdata" install_netdata_logrotate || run_failed "Cannot install logrotate file for netdata." +# ----------------------------------------------------------------------------- +progress "Telemetry configuration" + +# Opt-out from telemetry program +if [ -n "${NETDATA_DISABLE_TELEMETRY+x}" ]; then + run touch "${NETDATA_USER_CONFIG_DIR}/.opt-out-from-anonymous-statistics" +else + printf "You can opt out from anonymous statistics via the --disable-telemetry option, or by creating an empty file ${NETDATA_USER_CONFIG_DIR}/.opt-out-from-anonymous-statistics \n\n" +fi # ----------------------------------------------------------------------------- progress "Install netdata at system init" |