diff options
author | James Mills <prologic@shortcircuit.net.au> | 2020-05-26 21:53:38 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-26 21:53:38 +1000 |
commit | e92d2ce7a155a33ee6b0acfd928f357251c02c69 (patch) | |
tree | eb9bde6d9579c4dac483ae04fdd5f318b682f4a5 /packaging/installer/netdata-updater.sh | |
parent | a938e769b6852434840bc0f2efdb2edb86fa5283 (diff) |
Revert "Introduce a random sleep in the Netdata updater (#9079)" (#9161)
This reverts commit cea8a3fcbb3b48fce545d19bce2b5cf920c6794d.
Diffstat (limited to 'packaging/installer/netdata-updater.sh')
-rwxr-xr-x | packaging/installer/netdata-updater.sh | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/packaging/installer/netdata-updater.sh b/packaging/installer/netdata-updater.sh index 38f91aec26..781575c711 100755 --- a/packaging/installer/netdata-updater.sh +++ b/packaging/installer/netdata-updater.sh @@ -185,8 +185,8 @@ update() { do_not_start="--dont-start-it" fi - if [ -n "${NETDATA_SELECTED_DASHBOARD}" ]; then - env="NETDATA_SELECTED_DASHBOARD=${NETDATA_SELECTED_DASHBOARD}" + if [ -n "${NETDATA_SELECTED_DASHBOARD}" ] ; then + env="NETDATA_SELECTED_DASHBOARD=${NETDATA_SELECTED_DASHBOARD}" fi info "Re-installing netdata..." @@ -210,14 +210,6 @@ tmpdir= trap cleanup EXIT -# Random sleep to aileviate stampede effect of Agents upgrading -# and disconnecting/reconnecting at the same time (or near to). -# But only we're not a controlling terminal (tty) -# Randomly sleep between 1s and 60m -if [ ! -t 1 ]; then - sleep $(((RANDOM % 3600) + 1))s -fi - # Usually stored in /etc/netdata/.environment : "${ENVIRONMENT_FILE:=THIS_SHOULD_BE_REPLACED_BY_INSTALLER_SCRIPT}" |