Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the code that checks for available updates. #11870

Merged
merged 5 commits into from Dec 17, 2021

Conversation

Ferroin
Copy link
Member

@Ferroin Ferroin commented Dec 6, 2021

Summary

This fixes the code responsible for checking for the availability of updates to the local copy of Netdata to correctly handle cases where the default install prefix is not used, as well as static installs.

This should prevent cases of the updater unconditionally running on some systems even if there is no available update.

Component Name

area/packaging

Test Plan

The simplest way to test this is to intentionally install an older static build and then run the updated version of the updater script from this PR against that install with the --no-updater-self-update option.

Additional Information

Fixes: #10555

@github-actions github-actions bot added the area/packaging Packaging and operating systems support label Dec 6, 2021
packaging/installer/netdata-updater.sh Outdated Show resolved Hide resolved
packaging/installer/netdata-updater.sh Outdated Show resolved Hide resolved
@Ferroin Ferroin changed the title Fix the code that checks Fix the code that checks for available updates. Dec 7, 2021
@Ferroin Ferroin marked this pull request as ready for review December 7, 2021 15:06
ilyam8
ilyam8 previously approved these changes Dec 7, 2021
iigorkarpov
iigorkarpov previously approved these changes Dec 8, 2021
@ilyam8
Copy link
Member

ilyam8 commented Dec 8, 2021

Good work, @Ferroin. I tested both compiled/static versions and both channels (stable, nightly) 👍

@ilyam8
Copy link
Member

ilyam8 commented Dec 9, 2021

@Ferroin consider rebasing/merging this PR so you can continue with #11753

And use it to check for updates for static builds too.
This brings it into consistency with the existing install detection code
in the new kickstart script, which correctly handles almost all cases of
existing installs.
@Ferroin
Copy link
Member Author

Ferroin commented Dec 9, 2021

Rebased to pick up recent changes.

packaging/installer/netdata-updater.sh Outdated Show resolved Hide resolved
packaging/installer/netdata-updater.sh Outdated Show resolved Hide resolved
iigorkarpov
iigorkarpov previously approved these changes Dec 13, 2021
Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>
@Ferroin Ferroin merged commit 52f743c into netdata:master Dec 17, 2021
@Ferroin Ferroin deleted the updater-check-fix branch December 17, 2021 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/packaging Packaging and operating systems support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Netdata keeps updating even if there is no new version
4 participants