@cryptotaxi247 / netdata-1 / commits / 46e0aa85b

Move telemetry config before netdata is restarted and fix the console message (#6127)

Chris Akritidis committed May 27, 2019 at 12:47 UTC 46e0aa85b8b0d7791d07af68fc2f7d130b987477
1 file changed +11 -6
netdata-installer.sh
+11 -6
@@ -546,6 +546,7 @@ progress "Install logrotate configuration for netdata"
546
547 install_netdata_logrotate
548
549 +
550 # -----------------------------------------------------------------------------
551 progress "Read installation options from netdata.conf"
552
@@ -830,6 +831,16 @@ install_go() {
831 }
832 install_go
833
834 +# -----------------------------------------------------------------------------
835 +progress "Telemetry configuration"
836 +
837 +# Opt-out from telemetry program
838 +if [ -n "${NETDATA_DISABLE_TELEMETRY+x}" ]; then
839 + run touch "${NETDATA_USER_CONFIG_DIR}/.opt-out-from-anonymous-statistics"
840 +else
841 + 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"
842 +fi
843 +
844 # -----------------------------------------------------------------------------
845 progress "Install netdata at system init"
846
@@ -1055,12 +1066,6 @@ RELEASE_CHANNEL="${RELEASE_CHANNEL}"
1066 NETDATA_TARBALL_CHECKSUM="new_installation"
1067 EOF
1068
1058 -# Opt-out from telemetry program
1059 -if [ -n "${NETDATA_DISABLE_TELEMETRY+x}" ]; then
1060 - touch "${NETDATA_USER_CONFIG_DIR}/.opt-out-from-anonymous-statistics"
1061 -else
1062 - progress "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"
1063 -fi
1069
1070 # -----------------------------------------------------------------------------
1071 echo >&2