diff options
author | Chris Akritidis <43294513+cakrit@users.noreply.github.com> | 2019-05-27 12:47:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-27 12:47:28 +0200 |
commit | 46e0aa85b8b0d7791d07af68fc2f7d130b987477 (patch) | |
tree | a5e28ac5d142b9226dac5aea11e4f1a1fbd1a636 /netdata-installer.sh | |
parent | 68dbbc73f751ecc739ec3614aa66865d197f25ea (diff) |
Move telemetry config before netdata is restarted and fix the console message (#6127)
Diffstat (limited to 'netdata-installer.sh')
-rwxr-xr-x | netdata-installer.sh | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/netdata-installer.sh b/netdata-installer.sh index 8732063cbc..41264c6485 100755 --- a/netdata-installer.sh +++ b/netdata-installer.sh @@ -546,6 +546,7 @@ progress "Install logrotate configuration for netdata" install_netdata_logrotate + # ----------------------------------------------------------------------------- progress "Read installation options from netdata.conf" @@ -831,6 +832,16 @@ install_go() { install_go # ----------------------------------------------------------------------------- +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" NETDATA_START_CMD="${NETDATA_PREFIX}/usr/sbin/netdata" @@ -1055,12 +1066,6 @@ RELEASE_CHANNEL="${RELEASE_CHANNEL}" NETDATA_TARBALL_CHECKSUM="new_installation" EOF -# Opt-out from telemetry program -if [ -n "${NETDATA_DISABLE_TELEMETRY+x}" ]; then - touch "${NETDATA_USER_CONFIG_DIR}/.opt-out-from-anonymous-statistics" -else - 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" -fi # ----------------------------------------------------------------------------- echo >&2 |