diff options
author | Austin S. Hemmelgarn <austin@netdata.cloud> | 2024-01-18 08:03:03 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-18 08:03:03 -0500 |
commit | 3558d50b106f8df5d60f0c5a8c22dee6cde69a81 (patch) | |
tree | 38240201b4ec2effc2a9e18dbe0aabb8b557b7a5 | |
parent | dedc5be04014f80da63f4c3ca58307025ddffe8d (diff) |
Fix incorrect major version check in updater. (#16803)
* Fix incorrect major version check in updater.
* Fix additional instance of the issue.
-rwxr-xr-x | packaging/installer/netdata-updater.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packaging/installer/netdata-updater.sh b/packaging/installer/netdata-updater.sh index 268465ff30..220de6e4c5 100755 --- a/packaging/installer/netdata-updater.sh +++ b/packaging/installer/netdata-updater.sh @@ -600,7 +600,7 @@ update_available() { update_safe=0 for v in ${NETDATA_ACCEPT_MAJOR_VERSIONS}; do - if [ "${current_major}" -eq "${v}" ]; then + if [ "${latest_major}" -eq "${v}" ]; then update_safe=1 break fi @@ -910,7 +910,7 @@ update_binpkg() { update_safe=0 for v in ${NETDATA_ACCEPT_MAJOR_VERSIONS}; do - if [ "${current_major}" -eq "${v}" ]; then + if [ "${latest_major}" -eq "${v}" ]; then update_safe=1 break fi |