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
|
||||
}
|
||||
function checkfornodejsrpm {
|
||||
yum list installed nodejs
|
||||
yum list installed nodejs | grep nodejs
|
||||
}
|
||||
function installnodeJS {
|
||||
if [ "$usenvm" == "n" ]; then
|
||||
@@ -34,7 +34,7 @@ function installnodeJS {
|
||||
nodejs="nodejs"
|
||||
fi
|
||||
elif [ "$usenvm" == "y" ]; then
|
||||
if [ -z "$(checkfornodejsrpm)" ]; then
|
||||
if [ ! -z "$(checkfornodejsrpm)" ]; then
|
||||
yum -y remove nodejs
|
||||
fi
|
||||
if [ -e "$HOME/.nvm" ];then
|
||||
|
||||
Reference in New Issue
Block a user