Update install_netdata

added function for installing Node.JS Dependencies
This commit is contained in:
LPJon
2023-08-31 02:01:13 -05:00
committed by GitHub
parent 97ab684ab6
commit 7c7b2e3219

View File

@@ -46,6 +46,9 @@ function installnodeJS {
fi fi
fi fi
} }
function installnodeJSDependencies {
yum -y install json-c-devel libatomic libyaml-devel lz4-devel systemd-devel
}
# --------------------- # ---------------------
# Check centos version # Check centos version
centosversion=$(rpm -qa \*-release | grep -Ei "oracle|redhat|centos|cloudlinux" | cut -d"-" -f3 | cut -d"." -f 1 | head -n 1) centosversion=$(rpm -qa \*-release | grep -Ei "oracle|redhat|centos|cloudlinux" | cut -d"-" -f3 | cut -d"." -f 1 | head -n 1)
@@ -78,8 +81,7 @@ else
yum -y install MySQL-python python python-yaml python-psycopg2 $nodejs lm_sensors --enablerepo=epel yum -y install MySQL-python python python-yaml python-psycopg2 $nodejs lm_sensors --enablerepo=epel
yum -y install nmap-ncat git zlib-devel libuuid-devel --enablerepo=epel yum -y install nmap-ncat git zlib-devel libuuid-devel --enablerepo=epel
yum -y install libmnl-devel libuv-devel --enablerepo=epel yum -y install libmnl-devel libuv-devel --enablerepo=epel
# New Code Below installnodeJSDependencies
yum -y install json-c-devel libatomic libyaml-devel lz4-devel systemd-devel
fi fi
git clone https://github.com/firehol/netdata.git --depth=1 /usr/local/src/netdata git clone https://github.com/firehol/netdata.git --depth=1 /usr/local/src/netdata