add option to opt-out from telemetry program (#5138)
Paweł Krupa committed
Jan 10, 2019 at 09:52 UTC
381f8c9194b06621ce302aa6dbb6426cab96c532
1 file changed
+12
netdata-installer.sh
+12
@@ -150,6 +150,10 @@ Valid <installer options> are:
150
Use this option to allow it continue
151
without checking pkg-config.
152
153
+ --disable-telemetry
154
+
155
+ Use this flag to opt-out from our anonymous telemetry progam.
156
+
157
Netdata will by default be compiled with gcc optimization -O2
158
If you need to pass different CFLAGS, use something like this:
159
@@ -205,6 +209,9 @@ while [ ! -z "${1}" ]; do
209
elif [ "$1" = "--disable-x86-sse" ]; then
210
NETDATA_CONFIGURE_OPTIONS="${NETDATA_CONFIGURE_OPTIONS//--disable-x86-sse/} --disable-x86-sse"
211
shift 1
212
+ elif [ "$1" = "--disable-telemetry" ]; then
213
+ NETDATA_DISABLE_TELEMETRY=1
214
+ shift 1
215
elif [ "$1" = "--help" -o "$1" = "-h" ]; then
216
usage
217
exit 1
@@ -958,6 +965,11 @@ REINSTALL_PWD="${REINSTALL_PWD}"
965
REINSTALL_COMMAND="${REINSTALL_COMMAND}"
966
EOF
967
968
+# Opt-out from telemetry program
969
+if [ -n "${NETDATA_DISABLE_TELEMETRY+x}" ]; then
970
+ touch ${NETDATA_USER_CONFIG_DIR}/.opt-out-from-anonymous-statistics
971
+fi
972
+
973
# -----------------------------------------------------------------------------
974
echo >&2
975
progress "We are done!"