mirror of
https://github.com/LPJon/cwpfixes.git
synced 2026-09-10 22:20:47 -05:00
Update install_netdata
fixed typo for removing nodejs rpm when nvm is selected
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user