Don't need the remove script

This commit is contained in:
Bob Mottram 2016-11-04 17:39:44 +00:00
parent 9a989d47c4
commit 40085c5c0f
1 changed files with 0 additions and 10 deletions

View File

@ -82,16 +82,6 @@ function remove_nodejs {
fi
sed -i "/install_${1}/d" $NODEJS_INSTALLED_APPS_FILE
if ! grep "install_" $NODEJS_INSTALLED_APPS_FILE; then
cat <<EOF > /root/remove-nodejs.sh
#!/bin/bash
PATH="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/bin"
NODE_PATH="/usr/lib/node_modules"
npm uninstall -g --save
exit 0
EOF
chmod +x /root/remove-nodejs.sh
/root/remove-nodejs.sh
apt-get -yq remove --purge nodejs
if [ -f /usr/bin/nodejs ]; then