@cryptotaxi247 / netdata-1 / commits / 3558d50b1

Fix incorrect major version check in updater. (#16803)

* Fix incorrect major version check in updater. * Fix additional instance of the issue.

Austin S. Hemmelgarn committed Jan 18, 2024 at 08:03 UTC 3558d50b106f8df5d60f0c5a8c22dee6cde69a81
1 file changed +2 -2
packaging/installer/netdata-updater.sh
+2 -2
@@ -600,7 +600,7 @@ update_available() {
600 update_safe=0
601
602 for v in ${NETDATA_ACCEPT_MAJOR_VERSIONS}; do
603 - if [ "${current_major}" -eq "${v}" ]; then
603 + if [ "${latest_major}" -eq "${v}" ]; then
604 update_safe=1
605 break
606 fi
@@ -910,7 +910,7 @@ update_binpkg() {
910 update_safe=0
911
912 for v in ${NETDATA_ACCEPT_MAJOR_VERSIONS}; do
913 - if [ "${current_major}" -eq "${v}" ]; then
913 + if [ "${latest_major}" -eq "${v}" ]; then
914 update_safe=1
915 break
916 fi