summaryrefslogtreecommitdiffstats
path: root/packaging/installer/netdata-updater.sh
AgeCommit message (Collapse)Author
2020-06-03Add a random offset to the update script when running non-interactively. (#9245)Austin S. Hemmelgarn
* Revert "Revert "Introduce a random sleep in the Netdata updater (#9079)" (#9161)" This reverts commit e92d2ce7a155a33ee6b0acfd928f357251c02c69. * Add option to updater to disable randomized delay. Primarily intended for CI, also useful for automated deployment tools like Ansible. * Use correct paths in CI. * Mke variable name match option name.
2020-06-03Fix reliability of kickstart/kickstart-static64 with checksums sometimes ↵James Mills
failing (#9165) * Add tool to build the dist and static x864_64 artifacts * Add support for overriding the URL for installing/updating from nightlies * Refactor curl/wget usage into less places. Use curl -q and --output and -O options instead of redirecting stdout * Update md5sum(s) of kickstart/kickstart-static64
2020-05-26Revert "Introduce a random sleep in the Netdata updater (#9079)" (#9161)James Mills
This reverts commit cea8a3fcbb3b48fce545d19bce2b5cf920c6794d.
2020-05-26Introduce a random sleep in the Netdata updater (#9079)James Mills
* Introduce a random sleep in the Netdata updater * Only sleep if we're not a tty (e.g: cron) and use a random interval between 30m-60m * Set lower bound to 1s * Disable random sleep / netdata-updater splay in lifecycle tests
2020-03-31Switched to the new React dashboard code as the default dashboard. (#8363)Austin S. Hemmelgarn
* Initial installer components for new dashboard. * Add script to switch between react and classic dashboards. * Update to newest version of react dashboard. * Properly substitute webdir. * Fix installation of dashboard switch script. * Properly handle file ownership and permissions. * Fix install of react dashboard. * Add dashboard_info.js to the react dashboard tree. * Update to version 0.3.2 of the React dashboard. * Switch using file lists instead of nuking old directory. * Properly handle updates. * Fix variable naming in switching script. * Fix copying of files in switching script. * Fix switching script invocation in installer. * update dashboard to v0.4.0 * v0.4.1 gauge & easypiechart width update proper centering when clicking alarm in alarms-log keep loader until react app is ready fix top bar not showing when highlighting (few lines of code) "check known URLs" issue "reset" options is not hooked up go to host node from streamed node (low priority, because that's removed on release) * Persist user selection of dashboard across updates. * update dashboard to v0.4.2 (temperature, units options fixed) * v0.4.5 fixed print modal progress text force reload on sync-selection option change * fix memory leak on firefox * fix active-alarms number in main.js header fix "back to normal" notifications constantly throwing in loop * fix active-alarms fetching * support subpaths Co-authored-by: Jacek Kolasa <jacek.kolasa@gmail.com>
2020-03-30Fix auto updates for static installs (kickstart_static64.sh) (#8507)James Mills
2020-03-25Fix the lack of cleanup in the netdata updater (#8414)James Mills
* Fix lack of proper cleanup in netdata updater * Use EXIT pseudo signal
2020-02-25packaging/installer: fix get_latest_version for nightly channel (#8172)Ilya Mashchenko
2020-02-13Fixed text if current version is >= latest version and already installed (#8078)James Mills
2020-02-12Fixes conditional for NetData Updater when checking for new updates (#8028)Gabor Meszaros
* Fix proposal for #8027 This commit changes the check for updated releases when running in manual mode * Default (current|latest)_version to 0 and invert the logic Co-authored-by: James Mills <prologic@shortcircuit.net.au>
2020-02-05Adds support for only performing updates if there is a newer version (#7939)James Mills
* Re-formatted ./packaging/installer/netdata-updater.sh with shfmt -w -i 2 -ci -sr * Fixed errors/warnings founds with shellcheck for ./packaging/installer/netdata-updater.sh * Fixed logic for removing TMPDIR * Fixed logic for removing TMPDIR proper * Fixed another shellcheck warning that ReviewDog found * Added support for only performing updates if there is a newer version * Fixed exit 1 on bad cd * Fixed expansion of pids in kill * Trigger CI
2020-02-05Fixes error/warnings found by shellcheck for ↵James Mills
./packaging/installer/netdata-updater.sh (#7938) * Re-formatted ./packaging/installer/netdata-updater.sh with shfmt -w -i 2 -ci -sr * Fixed errors/warnings founds with shellcheck for ./packaging/installer/netdata-updater.sh * Fixed logic for removing TMPDIR * Fixed logic for removing TMPDIR proper * Fixed another shellcheck warning that ReviewDog found * Fixed exit 1 on bad cd * Fixed expansion of pids in kill
2020-02-05Re-formatted ./packaging/installer/netdata-updater.sh with shfmt -w -i 2 -ci ↵James Mills
-sr (#7937)
2020-02-03netdata-updater.sh: explicitly return 0 from update (#7955)Ilya Mashchenko
2020-01-18Remove unnessecary `echo` call in updater. (#7783)Austin S. Hemmelgarn
This was left over from testing, and I forgot to remove it before merging the changes needed to make the updater work for static installs.
2020-01-14Make auto-updates work on kickstart-static64 installs. (#7704)Austin S. Hemmelgarn
* Store only the options for reinstall, not the full command. This simplifies handling of updates with the static installer. * Properly utilize the updater for static installs. * Disable auto-updater when using local files. If using local files, we can probably assume a system without a network connection, so don't enable the auto-updater. * Document support for auto-updates from kickstart-static64 * Fix infinite loop in auto-update option. * Update kickstart-static64 checksum in docs. * Remove unnecessary `sed` argument. Co-Authored-By: Konstantinos Natsakis <5933427+knatsakis@users.noreply.github.com> Co-authored-by: Konstantinos Natsakis <5933427+knatsakis@users.noreply.github.com>
2020-01-03netdata/installer: Make netdata installer more flexible, to accommodate ↵Paul Emm. Katsoulakis
install with ssl on MacOS (#6922) * netdata/packaging: allow passing of LDFLAGS, together with CFLAGS * netdata/packaging: add instructions for mac * Update packaging/installer/README.md Co-Authored-By: Joel Hans <joel.g.hans@gmail.com> * Update packaging/installer/README.md Co-Authored-By: Joel Hans <joel.g.hans@gmail.com> * Update packaging/installer/README.md Co-Authored-By: Joel Hans <joel.g.hans@gmail.com> * netdata/docs: fix doc as per feedback Co-authored-by: Joel Hans <joel.g.hans@gmail.com>
2019-07-29netdata/packaging: Move tarball checksum information into lib dir of netdata ↵Paul Emm. Katsoulakis
(#6555) * netdata/packaging: Move tarball checksum information into lib dir of netdata 1) Introduce NETDATA_LIB_DIR within environment file, we are going to need to refer to it 2) move NETDATA_TARBALL_CHECKSUM to /netdata.tarball.checksum 3) Make sure you support transitional period, which means load and remove the variable from the old location then move it to the new one * netdata/packaging: relocate netdata-updater.sh and netdata-uninstaller.sh
2019-07-27netdata/packaging: Adopt netdata-updater to run properly for static64 ↵Paul Emm. Katsoulakis
installations. (#6520) * netdata/packaging: Start support for netdata-updater compatibility on static installation 1) Make netdata-installer.sh accept --static option, that simply passes variable IS_NETDATA_STATIC_BINARY=yes to the environment 2) Adjust the updater to check that variable and then is set to yes, make it download the static binary and run the static binary In theory, this should give us the required info on the updater. Only thing missing is how to catch the extra arguments the user might have given on the initial install. Will rework this after i test this first draft change * netdata/packaging: dont forget to enter the temp dir and also return to the original one afterwards. Print some info too. * netdata/packaging: reduce complexity on parameters for installer. Rather expect the variable to be set by the caller. this way we wont let the users get confused by the existence of a flag that only has internal usage. * netdata/packaging: dont forget to clean up the whole folder, its a temp
2019-07-22netdata/packaging: Fix installer scripts documentation. updater is, well, ↵Pavlos Emm. Katsoulakis
updater (not uninstaller). Also some style
2019-05-31netdata/packaging: always update on empty checksum (#6182)Paul Emm. Katsoulakis
2019-05-27netdata/packaging/installer: nits and fixes (#6121)Paul Emm. Katsoulakis
* netdata: fix attempt for labels * Revert "netdata: fix attempt for labels" This reverts commit b61525925f5a6d752eac97e4a1cd7af915567ad2. * netdata: fix attempt for labels (2) * netdata/packaging/installer: Improvements over netdata installer process around go.d plugin 1) Align retries and timeouts between curl and wget scenarios, should take same time with either tool 2) Add more information when reaching the two error cases, to instruct the user on how to handle the errors 3) Make the download failure a soft error, just warn about skipping install 4) Rename download to download_go, we only run it for go so make this crystal clear * netdata/packaging/installer: when download has not succeeded, warn the user abort the go.d install and continue * netdata/packaging: Enforce usage of predefined start/stop commands for netdata. Add some verbosity too for visibility * netdata/packaging/installer: FreeBSD install - add a note for rc setup, then during first start up use onestart to avoid confusing warnings * netdata/packaging: Add newer debian supported versions, also a info print nit * netdata/packaging: Attend first feedback - use separate variable for the command needed by installer * netdata/packaging: make POSIX compliant equalities. The double equal sign is not working on all shells (dash for example) * netdata/packaging: fix missed md5sum update in README.md * netdata/packaging: revert debian selection - got misguided I obviously didnt test correctly and i misread the release notes, i didnt check the introduction of systemd during jessie release, i only looked for mentions in stretch. So revert this change and retest both on droplet and container installations * netdata/packaging: MacOS - silence a few unimportant errors, make initial detection friendlier 1) Silence failure of commands that are expected to fail on mac 2) add alternatives to uname, to match mac syntax for friendlier output * netdata/packaging: Update README.md * netdata/packaging: Adjustments from PR feedback 1) inform about disable-go when bailing out on download failure 2) Make sure you fail the download if the file is empty 3) Make sure you bail out if checksum fails * netdata/packaging/ci: revert download timeout logic for wget -- seems that there was an exceptional case on wget requiring this differentiation as per cakrits comments -- will revise later, as this is not critical to change
2019-04-29Fix lifecycle script (#5918)Paul Emm. Katsoulakis
* netdata/packaging/ci: stronger validations during install, add some comments, change validation of CWD * netdata/packaging/ci: Add a lifecycle test to validate update from stable to latest works smooth -> Add updater BATS script that does the trick for installing stable then migrating to latest using current code and not nightly -> Integrate with travis -> Rename /code to /netdata in travis, scripts will eventually expect the TLD of repo to be actually named netdata, so test will start failing later -> Introduce a flag on the updater, so that it doesn't download the tarball, but it rather works with a local pre-defined directory. If a user wants to override the update process, so that it runs with a different repository he just needs to export NETDATA_LOCAL_TARBAL_OVERRIDE with the desired repo directory * netdata/packaging/ci: Add required packages for it to run
2019-04-03netdata/packaging: Fix non compatible function declaration (#5789)Paul Emm. Katsoulakis
1)remove function keyword 2)update README.md
2019-04-03netdata/packaging/updater: fix updater (#5785)Paul Emm. Katsoulakis
2019-04-01netdata/packaging/installer: fix sha256sum failure on freeBSD (#5760)Paul Emm. Katsoulakis
* netdata/packaging/installer: Introduce safe_sha256sum - a more flexible checsum function Due to #5747 we discovered that our installer wasnt working properly on FreeBSD. We created within our functions lib a safe_sha256sum that picks between sha256sum and shasum, with priority to the first method * netdata/packaging/installer: Update checksums in README
2019-03-24Remove temp log file if no update needed (#5695)Chris Akritidis
2019-02-28introduce stable installation channel (#5487)Paweł Krupa
[patch]
2019-02-25Update netdata-updater.shPaweł Krupa
2019-02-24Make curl silent and show errors only if it fails (#5485)Zoltán Müllner
* Make curl silent and show errors only if it fails * Make curl silent and show errors only if it fails * Make curl silent and show errors only if it fails * Make curl silent and show errors only if it fails
2019-02-24Increase curl timeout to address spotty network (#5476)elfgoh
2019-02-21revert #5457 and test if files exist after installation (#5460)Paweł Krupa
[netdata patch release]
2019-02-20Fix curl download (#5439)Thomas Hufschmidt
* gitignore rules for generated files matched packaging content * follow http redirects when downloading via curl (#5411)
2019-02-13cleanup updater script and no `/opt` usage (#5218)Paweł Krupa
2019-01-20Fix nightly builds and cron autoupdater (#5232)Paweł Krupa
* add gating before using polyverse * workaround for installations which doesn't use newer installer * fix #5225; #5229; #5228; #5208
2019-01-16GCS-based updater (#5174)Paweł Krupa
* updater using GCS * new lifecycle test * modify lifecycle test * Update netdata-updater.sh * simplify conditions in installer * less quotes
2018-12-19Move installer dir under packaging (#5009)Paweł Krupa
* move installer dir under packaging * fix docs creation * uninstaller is broken and fix will be created in #5031 * fix links in docs