Fix and improve netdata-updater.sh script (#12757)
* minor improvement in compatible DISTRO detection * revert distro detection code; added almalinux and rocky distros as centos compatibility distro
Marian Savchuk committed
May 17, 2022 at 20:30 UTC
91ccf89a4cd90895f4294bd34a2c2b3a34388e6b
1 file changed
+5
-1
packaging/installer/netdata-updater.sh
+5
-1
@@ -60,6 +60,10 @@ info() {
60
echo >&3 "$(date) : INFO: ${script_name}: " "${1}"
61
}
62
63
+warning() {
64
+ echo >&3 "$(date) : WARNING: ${script_name}: " "${@}"
65
+}
66
+
67
error() {
68
echo >&3 "$(date) : ERROR: ${script_name}: " "${1}"
69
if [ -n "${NETDATA_SAVE_WARNINGS}" ]; then
@@ -681,7 +685,7 @@ update_binpkg() {
685
opensuse-leap)
686
DISTRO_COMPAT_NAME="opensuse"
687
;;
684
- rhel)
688
+ almalinux|rocky|rhel)
689
DISTRO_COMPAT_NAME="centos"
690
;;
691
*)