-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Overhaul handling of auto-updates in the installer code. #12076
Conversation
e69ad29
to
b8cf500
Compare
Rebased to resolve merge conflict. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docs look fine. Thank you for updating the docs. :)
b8cf500
to
cfdbbb9
Compare
Rebased to resolve merge conflicts. |
cfdbbb9
to
4f6bd5a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docs: I really appreciate the well-written documentation. Thank you!
4f6bd5a
to
23dc231
Compare
Rebased to resolve merge conflicts. |
23dc231
to
349d1b0
Compare
Rebased to resolve merge conflicts. |
Indeed, though it’s failing on unrelated code instead of on something I was actually changing, so I think it’s safe to ignore. |
349d1b0
to
50de7b4
Compare
Rebased to resolve merge conflicts. |
netdata -W buildinfo | grep 'Install type:' | ||
``` | ||
|
||
If this produces no output, you have an older install and will have to manually look in the Netdata config directory. | ||
If you are not sure where your Netdata config directory is, see the [configuration doc](/docs/configure/nodes.md). In | ||
most installations, this is `/etc/netdata`. | ||
|
||
Use `cd` to navigate to the Netdata config directory, then use `ls -a` to look for a file called `.install-type`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Ferroin Line 34 contains instructions but they are stuffed away in a paragraph.
Would you be fine to restructure the steps into an ordered list?
I proposed the following in the blog:
This lets us handle the logic sanely from the kickstart script regardless of the install method, and allows users to more reliably toggle auto-updates themselves without having to understand what is being done.
3e8b61f
50de7b4
to
3e8b61f
Compare
Rebased to fix merge conflicts. Also fixed doubled |
Merging this as the CI is passing and the only functional change since the last round of approvals is a documentation fix. |
…data#12076)" This reverts commit da7f215.
Summary
This completely overhauls how we are handling setup of auto-updates in the installer code. After this PR:
netdata-updater.sh
script is properly bundled as part of our binary packages.netdata-updater.sh
script can be used to toggle auto-updates on and off with new--enable-auto-updates
and--disable-auto-updates
options.netdata-installer.sh
or the static build installer code to do this.netdata-installer.sh
script will not result in auto-updates being enabled (they did not always work correctly for this case as it was), though it will still install thenetdata-updater.sh
script which can be used to manually enable auto-updates. The--auto-update
option and associated other options will be silently ignored.netdata-updater.sh
script which can be used to manually enable auto-updates. The--auto-update
option will be silently ignored.Existing installs will be unaffected by these changes, other than native package-based installs properly including the updater script.
Test Plan
Basic handling of the new
--enable-auto-updates
and--disable-auto-updates
options can be done trivially on any existing static or locally built install by downloading the copy of the script from this PR and simply running it with the appropriate option.Testing of the kickstart changes will require an approach similar to our CI for testing the kickstart script against the code from the PR itself by using an override of the download URL for the source tarball.
Additional Information
Fixes: #12072