diff --git a/nodejs-install-centos.sh b/nodejs-install-centos.sh deleted file mode 100755 index b2b235a..0000000 --- a/nodejs-install-centos.sh +++ /dev/null @@ -1 +0,0 @@ -curl --silent --location https://rpm.nodesource.com/setup_16.x | bash \ No newline at end of file diff --git a/nodejs-install.sh b/nodejs-install.sh index d5f6cf9..66b96c9 100755 --- a/nodejs-install.sh +++ b/nodejs-install.sh @@ -21,8 +21,8 @@ sudo apt update if [ $nodeVersion != "tools" ] then echo "######## Installing nodejs v$nodeVersion ########" - echo From https://deb.nodesource.com/setup_$nodeVersion.x curl -sL https://deb.nodesource.com/setup_$nodeVersion.x | sudo bash - && sudo apt install nodejs -y + # for centos: curl --silent --location https://rpm.nodesource.com/setup_$nodeVersion.x | sudo bash echo "######## nodejs v$nodeVersion installed completely! ########" fi