Update install_netdata

fixed typo for removing nodejs rpm when nvm is selected
This commit is contained in:
LPJon
2023-08-31 02:55:50 -05:00
committed by GitHub
parent 9941996398
commit af33a1d187

View File

@@ -20,7 +20,7 @@ function getsystemnodeversion {
fi fi
} }
function checkfornodejsrpm { function checkfornodejsrpm {
yum list installed nodejs yum list installed nodejs | grep nodejs
} }
function installnodeJS { function installnodeJS {
if [ "$usenvm" == "n" ]; then if [ "$usenvm" == "n" ]; then
@@ -34,7 +34,7 @@ function installnodeJS {
nodejs="nodejs" nodejs="nodejs"
fi fi
elif [ "$usenvm" == "y" ]; then elif [ "$usenvm" == "y" ]; then
if [ -z "$(checkfornodejsrpm)" ]; then if [ ! -z "$(checkfornodejsrpm)" ]; then
yum -y remove nodejs yum -y remove nodejs
fi fi
if [ -e "$HOME/.nvm" ];then if [ -e "$HOME/.nvm" ];then